mysqli_insert_id () [duplicate]

℡╲_俬逩灬. 提交于 2020-07-03 08:14:09

问题


is it safe to use mysqli_insert_id() when the database is heavily used and more than one id maybe inserted in the same time, or it will get only the id that inserted by a query from this user..


回答1:


mysqli_insert_id() is specific to the database connection , it returns the ID of the row which you inserted most recently.



来源:https://stackoverflow.com/questions/38930704/mysqli-insert-id

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