Problem with last_insert_row_id in sqlite3

K

Kenneth McDonald

When I try to use the last_insert_row_id function in sqlite3, I'm
getting a sqlite syntax error. Since all I'm doing is:

db = SQLite3::Database.new(...)
id = db.last_insert_rowid

I can't see what could possibly be wrong with something so simple as
this. Clearly, however, I'm also simple when it comes to this :), so
any help would be appreciated.

Thanks,
Ken
 
K

Kenneth McDonald

Problem solved. The error was in incorrect docs on the web. the proper
function is last_insert_row_id.

Ken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top