oracle - Why am I getting invalid identifier when executing this SQL? -


why getting invalid identifier when executing sql? i'm stumped. wrong simple code. error is

ora-00904: : invalid identifier

create table themepark ( apples number(10) primary key, bananas varchar2(20), not null, cherries varchar2(10), not null, eggs varchar2(10) not null ); 

i'm using oracle db ones using sql fiddle.

on flip side, code below works.

create table ticket ( red1 varchar2(15) primary key, orange number(10) not null, yellow number(4,2) not null, green varchar2(2) not null, blue varchar2(15) not null );  

what makes 1st code (that doesn't work), different 2nd code does?

you have commas in script.

create table themepark ( apples number(10) primary key, bananas varchar2(20) not null, cherries varchar2(10) not null, eggs varchar2(10) not null ); 

Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -