我有以下由mysql工作台生成的sql语句。当我在oracleapex上运行它时,我得到了这些错误。有人能帮忙找出问题吗?
ORA-00905: missing keyword
ORA-06512: at "SYS.WWV_DBMS_SQL_APEX_190200", line 592
ORA-06512: at "SYS.DBMS_SYS_SQL", line 1658
ORA-06512: at "SYS.WWV_DBMS_SQL_APEX_190200", line 578
ORA-06512: at "APEX_190200.WWV_FLOW_DYNAMIC_EXEC", line 2057
CREATE TABLE Stores (
Store_ID INT NOT NULL
CONSTRAINT Store_ID PRIMARY KEY,
Tipo VARCHAR(45) NOT NULL,
Name VARCHAR(45) NOT NULL,
FinancesOfficer_ID INT NOT NULL,
CONSTRAINT fk_Stores_Finances_Officers
FOREIGN KEY (FinancesOfficer_ID)
REFERENCES Finances_Officers (FinancesOfficer_ID)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
Owner_ID INT NOT NULL,
CONSTRAINT fk_Stores_Store_Owners
FOREIGN KEY (Owner_ID)
REFERENCES Store_Owners (Owner_ID)
ON DELETE NO ACTION
ON UPDATE NO ACTION);
1条答案
按热度按时间zed5wv101#
CREATE TABLE
声明如下:;我创建了两个虚拟主表,以便外键约束可以引用。