DAC for MySQL

TMySQLDataset.Properties.LastInsertID

Previous Next

Get last inserted value of AUTO_INCREMENT column from MySQL server

Syntax:

property LastInsertID : Int64;

Description:

This property uses TmySQLDatabase.LastInsertID to get value. DAC for MySQL perfoms 'SELECT LAST_INSERT_ID()' query for current database and returns its result as value of this property.

See also:TmySQLDatabase.LastInsertID property