I want to cretae a relationship between table test3 and test, what am I doing wrong here when I create a foreign key.
CREATE test3(
order_no BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
Order_Date date,
Customer_SID integer,
Amount double,
FOREIGN KEY Customer_SID REFERENCES test(id)
);
CREATE test3(
order_no BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
Order_Date date,
Customer_SID integer,
Amount double,
FOREIGN KEY Customer_SID REFERENCES test(id)
);