For the PDO :: lastInsertId () method, what do they mean by the "sequence name" argument? (PHP - PDO)

I am trying to use the PDO method lastInsertId, but the documentation says that for some rdbms I need the sequence name as an argument. Just familiar with mysql, I'm not quite sure what the sequence name is. Do they mean the name of the column containing the auto-increment identifier? Here is the documentation for the method:

http://php.net/manual/en/pdo.lastinsertid.php

Any information on this would be greatly appreciated. Thank.

+5
source share
1 answer

auto_increment ing (.. MySQL) :

CREATE SEQUENCE a_sequence INCREMENT BY 5 START WITH 30

, : 30, 35, 40... .. lastInsertId .

+3

All Articles