getLastInsertID() public method
See also http://www.php.net/manual/en/function.PDO-lastInsertId.php -> Oracle does not support this Returns the ID of the last inserted row or sequence value.
public string getLastInsertID ( $sequenceName = '' ) | ||
---|---|---|
$sequenceName | string |
Name of the sequence object (required by some DBMS) |
return | string |
The row ID of the last row inserted, or the last value retrieved from the sequence object |
throws | yii\base\InvalidCallException |
if the DB connection is not active |
Please login to continue.