I'm trying to get the last added row of a table in SQLite
. Here is what I tried:
- (NSInteger)LastRowID
{
NSInteger lastRow = sqlite3_last_insert_rowid(...);
return lastRow;
}
I'm not sure what to put in the parenthesis after rowed
. I tried putting the current table I'm working with (like this: @"myTableName"
) in the parenthesis, but that gave me an error.
Aucun commentaire:
Enregistrer un commentaire