84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
定义表时是这样定义的:
CREATE TABLE Room ( R_Id char(128) AUTO_INCREMENT PRIMARY KEY, R_Info char(128) NOT NULL )
如果我向表中插入一条记录:
INSERT INTO Room (R_Info) VALUES ("123456")
请问有什么好的方法获取刚才插入记录自增项R_Id的值?
人生最曼妙的风景,竟是内心的淡定与从容!
INSERT INTO Room (R_Info) VALUES ("123456"); SELECT last_insert_id();
人生最曼妙的风景,竟是内心的淡定与从容!