为什么不能创建该表? SP2-0042

时间:2018-08-20 10:51:45

标签: sql oracle constraints

为什么我不能创建这个?我不断收到错误sp2-0042:未知命令“)”

 create table orders
    (
    onum number(4),
    vnum number(4),
    knum number(4),
    bedrag number(8),
    odatum date,
    constraint pk_order PRIMARY KEY (onum),
    constraint fk_order_verk FOREIGN KEY (vnum) references verkopers(vnum),
    constraint fk_order_knum FOREIGN KEY (knum) references klanten(knum),
    constraint ch_bedrag check ( bedrag > 0),
    constraint ch_date check ( odatum < sysdate OR odatum = sysdate)
    );

0 个答案:

没有答案