1 create table student( 2 id int(10) primary key auto_increment, 3 name varchar(20), 4 age int(3), 5 tid int(10), 6 constraint fk_teacher foreign key (tid) references teacher(id) 7 ); 名称