ORA-00906: missing left parenthesis

后端 未结 2 1580
我寻月下人不归
我寻月下人不归 2021-01-11 16:44
create table widep(
 cac NUMBER,
 ddate DATE,
 dtime TIMESTAMP,
 type VARCHAR2,
 amount NUMBER(10,2),
 constraint qwe foreign key(cac) references cust(cac)
)
         


        
2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-11 17:29

    CREATE TABLE widep(
    cac NUMBER(10,2) not null,
    date DATE,
    dtime TIMESTAMP,
    type VARCHAR2(50),
    amount NUMBER(10,2),
    CONSTRAINT cac_fk FOREIGN KEY key(cac) REFERENCES cust(cac)
    );
    

提交回复
热议问题