Domanda

DROP TABLE employee CASCADE CONSTRAINTS;
CREATE TABLE employee (
fname    varchar2(15) not null, 
minit    varchar2(1),
lname    varchar2(15) not null,
ssn      char(9),
bdate    date,
address  varchar2(30),
sex      char,
salary   number(10,2),
superssn char(9),
dno      number(4),
);

Hello, could anyone tell me why I receive

ORA-00911: invalid character Error

When I try to run this code in Oracle Application Express 11g?

Thank you!

È stato utile?

Soluzione

It appears that you have an extra comma after the last line:

dno      number(4), -- <<=== Here

Removing it should fix the problem (link to a demo on sqlfiddle).

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top