On 21 September 2011 12:02, Krishna Prasad
<krishnaprasadrs.1...@gmail.com> wrote:
> No .
>
> My requirement is
>
> While Xml parsing,i need to save each value  to db.During saving each table
> is related.Suppose i have a table which has field "id","form name"  in one
> table.I need to save the that  "id" value in another table also.Since it is
> parsing,i want to save it simultaneously.Can you help me?


SQLiteStatement.insert() returns ID of newly inserted row.

All you have to do is to wrap both inserts into a transaction.


>
> On Wed, Sep 21, 2011 at 6:49 AM, Ratheesh Valamchuzhy <android...@gmail.com>
> wrote:
>>
>> I didn't get your question correctly.... u want to get the primary key
>> value from the database ?
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Daniel Drozdzewski

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to