房天下 > 房天下问答 > 业主生活 > 其他
  • Oracle建表问题

    1 create table topic 2 ( 3 tid number 4 constraint pk_tid primary key, 5 tsid number 6 constraint fk_tsid references section(sid), 7 tuid number 8 constraint fk_tuid references users(uid1), 9 treplycount number default 0, 10 tface number, 11 ttopic varchar2(20) not null, 12 tcontents varchar2(20) 13 constraint ck_tcontents check(length(tcontents)>6), 14 ttime date default sysdate, 15 tclickcount number default 0, 16 tstate number default 1, 17 tlasreply date 18 constraint ck_tlasreply check(constraint>ttime) 19* )SQL> /)*第 19 行出现错误:ORA-02438: 列检查约束条件无法引用其它列

    提问者:鲁虺文化

    发布于2011-01-08

共1个回答
  • 时尚网吧 丨Lv 4
    18 constraint ck_tlasreply check(tlasreply>ttime)
    +1 2011-01-09 举报
热门人气推荐
免责声明:问答内容均来源于互联网用户,房天下对其内容不负责任,如有版权或其他问题可以联系房天下进行删除。