房天下 > 房天下问答 > 业主生活 > 其他
  • oracle外键的约束?

    create table a (shuzi number(4) primary key,gesu number(4)); insert into taoge values(11,12); insert into taoge values(22,23); insert into taoge values(33,34); insert into taoge values(44,45); create table b( shuzi number(4) );insert into b values( 888); 为什么写下alter table b addconstraint yuesu foreign key(shuzi)references a;语句时上面提示ORA-02298: 无法验证 (SYSTEM.YUESU) - 未找到父项关键字

    提问者:HANRONG239

    发布于2010-11-03

共1个回答
  • 襄 儿 丨Lv 4
    alter table b addconstraint yuesu foreign key(shuzi)references a后面要注明a表的那个字段
    +1 2010-11-03 举报
热门人气推荐
免责声明:问答内容均来源于互联网用户,房天下对其内容不负责任,如有版权或其他问题可以联系房天下进行删除。