mysql insert into 返回主键值

180it 2019-10-06 PM 4652℃ 0条

mysql insert into 返回主键值

mysql_query 运行 insert into 默认不返回数据的

INSERT INTO table_name (column1, column2)
VALUES (value1, value2);select @@IDENTITY as id; 只需在后面加一句select @@IDENTITY as id;

支付宝打赏支付宝打赏 微信打赏微信打赏

如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!

标签: none

mysql insert into 返回主键值