一、往student_info表中插入一条数据
insert into student_info values(5,'liutao',12); //主键手动定义
报错 Error Code : 1062 Duplicate entry '5' for key 'PRIMARY',这里就是因为你的主键重复了
insert into student_info(stuName,stuAge) values('liutao',13);//主键自动生成
二、往student_info表中插入多条数据
insert into student_info(stuName,stuAge) values('zhanghua',13),('zhanghua',14),('zhanghua',15);
三、从student_info_B往student_info表中插入多条数据
insert into student_info(stuName,stuAge) select studentName_B,studentAge_B from student_info_B ;
四、从student_info_B往student_info表中插入多条数据
insert into student_info set stuName = 'zhanghua',stuAge = 15 ;