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.
如何获取刚刚插入的记录ID(mysql)?我将添加到查询中:
INSERT INTO `osoby` (`imie`,`nazwisko`) VALUES ('wartość','wartość2')
? 谢谢。
要获取最后插入的 id,请使用
SELECT LAST_INSERT_ID()
请参阅文档