create table a( id int foreign key 可以起个名字 references table1(列名))不过对于数据库,最好不要建这些约束,把程序语句写好约束就行,以免数据添加报错 望采纳