Home >Database >Mysql Tutorial >保存数据同时查询保存数据记录的ID

保存数据同时查询保存数据记录的ID

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 16:03:421392browse

保存数据时同时取出该数据的记录ID insert into Table(a,b) values(1,2) select @@identity

保存数据时同时取出该数据的记录ID

insert into Table(a,b) values(1,2) select @@identity

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn