views:

63

answers:

1

This is driving me insane, can anyone help me understand why the following statements all return the following error?

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));

And the error message:

ORA-00907: missing right parenthesis

Im running over JDBC using ojdbc5.jar if it makes a difference! Any help much appreciated, Im going insane

+6  A: 

A CLOB is a CLOB (and, as o.k.w. points out, a NCLOB is an NCLOB). You don't need to give it a size:

create table JMS_PENDING_MESSAGE 
    (id integer primary key, queuex nvarchar2(200), messagex nclob);
APC
You meant "An NCLOB is a (C)LOB" :)
o.k.w