insert into sn(code) values(NULL);
select LAST_INSERT_ID();
表sn的设计
id(bigint 自增型)  code(char(1) 可以为NULL