PDO Get Multiple Insert Ids

[亡魂溺海] 提交于 2019-12-05 10:45:43

If you're using MyISAM tables then because of the table level locking mechanism it's only possible for you to get given a range of ids.

After reading http://dev.mysql.com/doc/refman/5.5/en/innodb-auto-increment-handling.html#innodb-auto-increment-traditional assuming you're using "traditional" innodb locking (which likely you are) then again for a single statement the set of IDs will be sequential.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!