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) --外鍵約束 ); 備註:必須先建立
相關文章
相關標籤/搜索