使用nextval创建表时出错

时间:2015-12-07 10:49:43

标签: sql database oracle sequence

当我尝试运行代码时

create table Projects
(
ID_PROJECT integer not null default(ID_PROJECT.nextval)
);

为什么我会收到错误“Missing Right Parenthesis”?

1 个答案:

答案 0 :(得分:0)

您无法使用默认ID_PROJECT.nextval。为此,您应该创建before insert trigger