建立有外键的表sql语句

create table tablename (table id int(11) not null,im name varchar(256) not null,tab school_id int(11) not null,ab primary key(id),arc foreign key(school_id) references school(id) )   其中school为表名
相关文章
相关标签/搜索