Not entirely sure how to achieve this. I'm trying to get the primary id of the row I just inserted into an sql database.
notify query.lastInsertedId() gives the error. I've tried a few things but with no luck as to getting the last inserted id. Any clues?
Thanks
Local query:TDatabaseQuery = MyDB.executeQuery("INSERT INTO npcs (npcname) values ('new')") notify query.lastInsertedId()
notify query.lastInsertedId() gives the error. I've tried a few things but with no luck as to getting the last inserted id. Any clues?
Thanks