user14480205
user14480205

Reputation:

getting error while creating table as ORA-00904: : invalid identifier in oracle database sql

I am trying to create a table but get an error as ORA-00904: : invalid identifier in oracle database

create table player_info
(player_id varchar2(200) primary key,
User_id varchar2(100) not null,
Level varchar2(200) not null,
HP number(1000) not null,
Map_id varchar2(200) not null,
Model_id varchar(200) not null,
Money varchar2(10000) not null,
Boss_killed varchar2(100));

Upvotes: 0

Views: 506

Answers (2)

Koen Lostrie
Koen Lostrie

Reputation: 18800

There are multiple things wrong in your statement. Each of the ones below will cause an error.

Upvotes: 1

gsalem
gsalem

Reputation: 2028

That is because LEVEL is a reserved word in Oracle, use another word instead.

Upvotes: 0

Related Questions