2
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!

Kurt Raschke
  • 960
  • 9
  • 19
weia design
  • 1,250
  • 2
  • 14
  • 22
  • 1
    This is old but wanted to say that I get this when I include a ; at the end of my query. Since the oci adds this for you it does not like when you add it yourself. – michael.schuett Oct 15 '14 at 19:56

1 Answers1

3

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

Sergey Kalinichenko
  • 714,442
  • 84
  • 1,110
  • 1,523