Can you give me sample code how to use it?
I still not understand when I read capi3ref.html
thx.
On Mon, 5 Feb 2007 18:36:04 -0500
"Igor Tandetnik" <[EMAIL PROTECTED]> wrote:
> Hariyanto <[EMAIL PROTECTED]> wrote:
> > I have 2 table:
> >
> > 1. Table A :
> > no INTEGER PRIMARY KEY,
> > name varchar(15);
> >
> > 2. Table B :
> > no smallint, (Foreign key)
> > Address varchar(20);
> > Telp varchar(10);
> >
> > Usually I use this step when I save data :
> > - insert A (name) VALUES ("Mr.X");
> > - x = Select no_id FROM A where name = 'Mr.X'
> > - Insert B (no_id, Alamat, Telp) VALUES (x, 'xxxxx', '123');
>
> Can't you use sqlite3_last_insert_rowid API?
>
> Igor Tandetnik
>
> -----------------------------------------------------------------------------
> To unsubscribe, send email to [EMAIL PROTECTED]
> -----------------------------------------------------------------------------
>
-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------