Hello guys!
I’m having trouble creating a relational database on virtuoso. I can’t use “CONSTRAINT” or INDEX, below follows the code I have developed … Constraint works without actions …
Someone can help me?
CREATE TABLE “BASEDADOSTESEFINAL”. “SAMPLE_SCHEMA”. “Terms” (
“TermID” INTEGER NOT NULL IDENTITY,
“TermName” VARCHAR (50) NOT NULL,
“Research_Output_ResearchOutputID” INTEGER NOT NULL,
PRIMARY KEY (“TermID”),
INDEX_ “fk_Terms_Research_Output1_idx” (“Research_Output_ResearchOutputID” ASC) VISIBLE,
CONSTRAINT “fk_Terms_Research_Output1”
FOREIGN KEY (“Research_Output_ResearchOutputID”)
REFERENCES “BASEDADOSTESEFINAL”. “SAMPLE_SCHEMA”. “Research_output” (“ResearchOutputID”)
ON DELETE NO ACTION
ON UPDATE NO ACTION)