为什么这会导致oracle错误? ORA-00907

时间:2010-02-12 07:59:54

标签: sql oracle ora-00907

这让我疯了,任何人都可以帮助我理解为什么以下语句都会返回以下错误?

create table JMS_PENDING_MESSAGE (id number primary key, queuex nvarchar2(200), messagex nclob(1000));
create table JMS_PENDING_MESSAGE (id number primary key, queuex nvarchar2(200), messagex nclob(10000));
create table JMS_PENDING_MESSAGE (id integer primary key, queuex nvarchar2(200), messagex nclob(10000));

错误信息:

ORA-00907: missing right parenthesis

我使用ojdbc5.jar运行JDBC,如果它有所作为!任何帮助非常感谢,我疯了

1 个答案:

答案 0 :(得分:6)

CLOB是CLOB(并且,正如o.k.w.指出的那样,NCLOB是NCLOB)。你不需要给它一个大小:

create table JMS_PENDING_MESSAGE 
    (id integer primary key, queuex nvarchar2(200), messagex nclob);