|
db2_last_insert_idReturns the auto generated ID of the last insert query that successfully executed on this connection Description
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:
Parameters
Return ValuesReturns the auto generated ID of last insert query that successfully executed on this connection. Examples
Example #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.
<?php The above example will output: Last Insert ID is : 1 |