On 2/26/2013 4:16 AM, Ashok Pitambar wrote:
  Is there any way to primary key(composite key) just after insert using
sqlite API?

You have just specified it in the INSERT statement. Surely you know which value you've inserted - why do you need SQLite to tell you that?

The reason sqlite3_last_insert_rowid is needed is that SQLite may automatically assign ROWID for newly inserted rows, and the function reports this automatic value.
--
Igor Tandetnik

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to