我正在尝试使用命令创建带有外键的表,SQL
但我不断收到此错误
Invalid field definition 'CUS_CODE' in definition of index or relationship.
我正在使用这个命令:
CREATE TABLE INVOICE(
INV_NUMBER CHAR(5) NOT NULL,
INV_DATE DateTime NOT NULL,
CONSTRAINT INV_PK PRIMARY KEY(INV_NUMBER),
CONSTRAINT INV_FK FOREIGN KEY(CUS_CODE) REFERENCES CUSTOMER(CUS_CODE)
);