Connection.getLastInsertId

Retrieve from the given GdaConnection the ID of the last inserted row. A connection must be specified, and, optionally, a result set. If not NULL, the underlying provider should try to get the last insert ID for the given result set.

class Connection
string
getLastInsertId

Parameters

recset DataModel

recordset.

Return Value

Type: string

a string representing the ID of the last inserted row, or NULL if an error occurred or no row has been inserted. It is the caller's reponsibility to free the returned string.

Meta