From: Kenneth McDonald Date: 2008-10-21T03:18:04+09:00 Subject: Re: Problem with last_insert_row_id in sqlite3 Problem solved. The error was in incorrect docs on the web. the proper function is last_insert_row_id. Ken On Oct 20, 2008, at 1:03 PM, Kenneth McDonald wrote: > 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 >