Table of Contents

ISQLGenerator.GenerateGetLastInsertId Method

Generates the SQL expression or statement used to retrieve the auto-generated primary key produced by the most recent INSERT.

Syntax

Unit: Aurelius.Sql.Interfaces

function ISQLGenerator.GenerateGetLastInsertId(SQLField: TSQLField): string; virtual; abstract;

Parameters

<-> Parameter Type Description
SQLField TSQLField The field descriptor for the identity column whose generated value is needed.

Returns

The SQL expression or statement that retrieves the last inserted identifier.

See also