用户表: create table userInfo( id int not null unique auto_increment, name )not null, password ) not null, nickname ) not null); 代码记录表: create table code_record( id int not null unique auto_increment, user_id int, foreign key(user_id) references userInf…