How to return auto generated column values from sqlite database in c#. I’m using Sqlite.data.dll.
Tried by executing query : “select last_insert_rowid() but it doesn;t seem to work as it is returning 0s. I’m using SqliteDataReader object to get the result.
Thanks
I tried these commands, and it worked fine (even if the
last_insert_rowid()call is from another transaction):The only requirement of
last_insert_rowid()is that it is called on the same database connection; please check that you didn’t open another one.