Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个表,它有一个自动递增的主键。每次我在该表中插入一行并用于mysql_insert_id()获取为该表插入的最后一个 id 时,它都会返回 0。
mysql_insert_id()
还有哪些可能的问题?
使用OpenCart提供的方法:
$this->db->getLastId()