获取数据表中最后一条记录的

PHP方法: mysql_insert_id() /mysqli_insert_id() 函数返回上一步 INSERT 操作产生的 ID。

thinkphp方法: getLastInsID()函数返回数据表中最后一条记录的id;

猜你喜欢

转载自blog.csdn.net/m0_37665137/article/details/79723620