我有两个表加州鳗 我想用卡的主键是作为CAL_ID鳗鱼外键约束在Oracle
外键下面是我的尝试。
Create table ELL
(course_code varcahr2(10) Constraints pk_course_code Primary Key,
Course_Title varchar2(30),
cal2_idnumber not null,
Constraint fk_cal2 Foreign Key (cal_id) References cal_id(cal2_id)
)
,但它显示的错误在第6行ORA-00904 “CAL_ID” 无效字符
有人可以告诉我如何做到这一点
RU试图创建表EEI? – Teja 2012-03-07 15:20:24