mysql_query 运行 insert into 默认不返回数据的
INSERT INTO table_name (column1, column2) VALUES (value1, value2);select @@IDENTITY as id;只需在后面加一句
select @@IDENTITY as id;
转载请注明出处 AE博客|墨渊 » 记录|mysql insert into 返回主键值
mysql_query 运行 insert into 默认不返回数据的
INSERT INTO table_name (column1, column2) VALUES (value1, value2);select @@IDENTITY as id;只需在后面加一句
select @@IDENTITY as id;
转载请注明出处 AE博客|墨渊 » 记录|mysql insert into 返回主键值
发表评论