用下面的语句创建了一个新表
create table child_list (chilNo char(2),id int primary key auto_increment,name char(10),age CHAR(2),sex char(5));
然后插入 insert into child_list(chilNo,name,age) values (LAST_INSERT_ID(),'Tom',17);
然后表中显示是这样的
很奇怪这里为什么是 3,然后继续插入两条数据
insert into child_list(chilNo,name,age) values (LAST_INSERT_ID(),'Jimmy',17);
insert into child_list(chilNo,name,age) values (LAST_INSERT_ID(),'King',19);
这个时候表中的显示是这样的,可以看出从第二条记录开始才是按插入顺序开始排列,那么想咨询一下第一条插入后产生的那个3表示什么意思呢,谢谢