gpt4 book ai didi

sql - 我收到此错误 ORA-00907 : missing right parenthesis

转载 作者:行者123 更新时间:2023-12-01 03:40:12 40 4
gpt4 key购买 nike

create table passenger(pnr number(10) primary key,
trainnumber number(5) foreign key references train(trainnumber),
noofseats number(4),
price number(4),
doj varchar2(10))

ORA-00907: 缺少右括号

最佳答案

foreign key表达式是多余的(读作:错误)。语法只是添加 references :

create table passenger(pnr number(10) primary key,
trainnumber number(5) references train(trainnumber), -- here
noofseats number(4),
price number(4),
doj varchar2(10))

关于sql - 我收到此错误 ORA-00907 : missing right parenthesis,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31471557/

40 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com