I tried creating a table on oracle apex but when I run it, it shows the following error: ORA-00922: missing or invalid option. Here's my code:
CREATE TABLE "PROD_INDEX"
(
"PNO" NUMBER (4,0) NOT NULL ENABLE,
"CATEGORY" VARCHAR(15) ,
"PRODUCT" VARCHAR2(10),
"COUNTRY" VARCHAR2(9),
"BRAND" VARCHAR(10)),
"DATE" DATE,
"YEAR" NUMBER(4,0),
"COST" NUMBER(7,2),
"SALES" NUMBER(10,2),
PRIMARY KEY ("PNO") ENABLE
)
/
So what could be the problem?
"BRAND" VARCHAR(10))
. Remove the extra(
and your statement runs. Check out the Live SQL demo . – APC