androidsqliteselect-insert

Android SQLite Insert-Select


There are two different methods for inserting a row into table:

I can split my query into two, but isn't it slower, than one query?


Solution

  • Do your insert however you like, then execSql "select last_insert_rowid()".