CREATE TABLE QRes
(
"QUERY_ID" VARCHAR2(32) NOT NULL,
PRIMARY KEY ("QR_ID"),
"SOURCE" VARCHAR2(255),
CONSTRAINT "FHDHDHJS89" FOREIGN KEY ("QrES_ID")
REFERENCES "DQM_QUERY" ("Q_ID") ENABLE
) TABLESPACE "USERS"
LOB ("DATA") STORE AS (
TABLESPACE "USERS" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10
NOCACHE LOGGING);
The output I am getting is ORA-00942: table or view does not exist
Is my SQL syntax wrong?
This is a runtime error. The syntax is fine and your statement is executed, but then it runs into a problem. The problem being in this case, that some referenced table does not exist. Looking at the statement, that can only be
DQM_QUERY. Does it exist?