oracle建立外键约束的两种方式

一、建立表时直接建立外键约束 create table books( bookid number(10) not null primary key, bookName varchar2(20) not null, price number(10,2), categoryId number(10) not null references Category(id) --外键约束 ); 备注:必须先建立
相关文章
相关标签/搜索