Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
zend-framework-community.634137.n4.nabble.com/mssql-pdo-lastInsertID-with-a-stored-procedure-td672685.html
php.net/manual/en/pdo.lastinsertid.php
Note:
This method may not return a meaningful or consistent result across different PDO drivers, because the underlying database may not even support the notion of auto-increment fields or sequences.
select IDENT_CURRENT('tableName');
orselect SCOPE_IDENTITY();
after a successful insert. Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question