MySQLDatabase.GetInsertID Method

Returns as an Integer the value of the AUTOINCREMENT field for the last row that was inserted.

Syntax