简体   繁体   English

如何在PHP中调用LAST_INSERT_ID MySQL方法?

[英]How to call the LAST_INSERT_ID MySQL method in PHP?

I have inserted a row into a MySQL table which has an automatically incremented column primary key. 我已经在具有自动递增的列主键的MySQL表中插入了一行。 I want to get this primary key value through the MySQL method LAST_INSERT_ID(). 我想通过MySQL方法LAST_INSERT_ID()获得此主键值。 So how to call it in PHP ? 那么如何在PHP中调用它?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM