[Gambas-user] MySQL last_insert_id value

Keith Clark keithclark at ...2185...
Fri Jan 20 22:38:04 CET 2012


How would I get the MySQL last_insert_id() value into an integer 
variable inside gambas?

I tried with

CurrentID=db.exec("select last_insert_id() as last")

but I get a type mismatch error.  Expecting integer, got result.

Thanks,

Keith





More information about the User mailing list