oracle11g - ORA-00907: missing right parenthesis when creating a table in Oracle 11G -
in oracle 11g, recieving error ora-00907: missing right parenthesis
when creating table shown below
create table structured_1000( year varchar2(4) not null, cp varchar2(50), onsg varchar2(50), onsla varchar2(9), road varchar2(100) not null, cat varchar2(20) refs varchar2(20), refn varchar2(20), ajunction varchar2(20), bjunction varchar2 (20), lennet char(2)` );
ive listed entire table error line changes - has shown both line 6 & 9. can see of parenthesis visible. issue occurs in both shell , apex.
there 2 issues in create table statement:
-
cat varchar2(20)
-
lennet char(2)`
fixing 2 issue create table:
sql> create table structured_1000 2 ( 3 year varchar2(4) not null, 4 cp varchar2(50), 5 onsg varchar2(50), 6 onsla varchar2(9), 7 road varchar2(100) not null, 8 cat varchar2(20), 9 refs varchar2(20), 10 refn varchar2(20), 11 ajunction varchar2(20), 12 bjunction varchar2 (20), 13 lennet char(2) 14 ); table created. sql>
Comments
Post a Comment