外键必需要建在主表的主键之上

SQL> SQL> SQL> SQL> SQL> create table a(id number,name varchar2(32));table Table created.im SQL> create table b(pid number,name varchar2(32));tab Table created.co SQL> alter table b add constraint FK_
相关文章
相关标签/搜索