|
db2_last_insert_idReturns the auto generated ID of the last insert query that successfully executed on this connection Beschreibung
string db2_last_insert_id
( resource
$resource
)Returns the auto generated ID of the last insert query that successfully executed on this connection. The result of this function is not affected by any of the following:
Parameter-Liste
RückgabewerteReturns the auto generated ID of last insert query that successfully executed on this connection. Beispiele
Beispiel #1 A db2_last_insert_id example The following example shows how to return the auto generated ID of last insert query that successfully executed on this connection.
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: Last Insert ID is : 1 |