【发布时间】:2017-03-20 06:52:53
【问题描述】:
尝试创建表
create table Properties(pID number, pAddress varchar(60) not null, oID
number not null, cID number, Primary Key(pID, oID, cID),leaseExp varchar(16));
表已创建
但是当我运行下一个命令时,我收到以下错误。
create table Client(cID number, cName varchar(16), mRent number(8,2),
Primary Key(cID, cName), Foreign Key(cID) references Properties(cID));
第 1 行的错误: ORA-02270: 此列列表没有匹配的唯一键或主键
我做错了什么?
【问题讨论】: