mysqli_insert_id() [英] mysqli_insert_id ()
本文介绍了mysqli_insert_id()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当数据库被大量使用并且可能同时插入多个ID时使用mysqli_insert_id()
是安全的,否则它将仅获得此用户的查询插入的ID.
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..
推荐答案
mysqli_insert_id()
特定于数据库连接,它返回您最近插入的行的ID.
mysqli_insert_id()
is specific to the database connection , it returns the ID of the row which you inserted most recently.
这篇关于mysqli_insert_id()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文