I have a script creating 10 tables
This one and 2 others load fine.
CREATE TABLE INSURANCE_COMPANY
(
COMPANY_ID NUMBER(6) NOT NULL PRIMARY KEY
, COMPANY_NAME VARCHAR2(20) NOT NULL
, STREET_ADDRESS VARCHAR2(30) NOT NULL
, CITY VARCHAR2(15) NOT NULL
, STATE VARCHAR2(2) NOT NULL
, ZIPCODE VARCHAR2(5) NOT NULL
, CONTACT_PHONE VARCHAR2(10) NOT NULL
);
This one and 6 others keep showing ORA-00907: missing right parenthesis.
CREATE TABLE HOUSEHOLD
(
HOUSEHOLD_ID NUMBER(6) NOT NULL PRIMARY KEY
, HOUSEHOLD_NAME VARCHAR2(20) NOT NULL
, STREET_ADDRESS VARCHAR2(30) NOT NULL
, CITY VARCHAR2(15) NOT NULL
, STATE VARCHAR2(2) NOT NULL
, ZIPCODE VARCHAR2(5) NOT NULL
, HOME_PHONE VARCHAR2(10) NOT NULL
, COMPANY_ID NUMBER(6) NOT NULL FOREIGN KEY
REFERENCES INSURANCE_COMPANY(COMPANY_ID)
, POLICY_NUMBER NUMBER(6) NOT NULL
, RESPONSIBLE_PARTY NUMBER(6) NOT NULL FOREIGN KEY
REFERENCES PATIENT(PATIENT_ID)
, HOUSE_DISCOUNT NUMBER(2) DEFAULT 0
);
I am working in Notepad++, there should not be any hidden characters and uploading to an Oracle Apex 11G instance.
I am at a loss for what I am missing. Any pointers?
Thank you,
JF
This one and 2 others load fine.
CREATE TABLE INSURANCE_COMPANY
(
COMPANY_ID NUMBER(6) NOT NULL PRIMARY KEY
, COMPANY_NAME VARCHAR2(20) NOT NULL
, STREET_ADDRESS VARCHAR2(30) NOT NULL
, CITY VARCHAR2(15) NOT NULL
, STATE VARCHAR2(2) NOT NULL
, ZIPCODE VARCHAR2(5) NOT NULL
, CONTACT_PHONE VARCHAR2(10) NOT NULL
);
This one and 6 others keep showing ORA-00907: missing right parenthesis.
CREATE TABLE HOUSEHOLD
(
HOUSEHOLD_ID NUMBER(6) NOT NULL PRIMARY KEY
, HOUSEHOLD_NAME VARCHAR2(20) NOT NULL
, STREET_ADDRESS VARCHAR2(30) NOT NULL
, CITY VARCHAR2(15) NOT NULL
, STATE VARCHAR2(2) NOT NULL
, ZIPCODE VARCHAR2(5) NOT NULL
, HOME_PHONE VARCHAR2(10) NOT NULL
, COMPANY_ID NUMBER(6) NOT NULL FOREIGN KEY
REFERENCES INSURANCE_COMPANY(COMPANY_ID)
, POLICY_NUMBER NUMBER(6) NOT NULL
, RESPONSIBLE_PARTY NUMBER(6) NOT NULL FOREIGN KEY
REFERENCES PATIENT(PATIENT_ID)
, HOUSE_DISCOUNT NUMBER(2) DEFAULT 0
);
I am working in Notepad++, there should not be any hidden characters and uploading to an Oracle Apex 11G instance.
I am at a loss for what I am missing. Any pointers?
Thank you,
JF