The statement "insert into s _ table (sid, sname, stype) values (s _ max+ 1,' Zhang San',' new user') does not need to add a sid field, but only needs to be written as insert into s _ table (sname, stype) values ('Zhang San',' new'). Sid will write it himself, automatically+1.