Create table error

I am trying to use the SQL to create a table…

CREATE TABLE Purchase_Orders (
PO_ID INT AUTO_INCREMENT,
PO_Date TIMESTAMP Default CURRENT_TIMESTAMP,
PO_Amount DECIMAL(8,2),
V_ID INT,
PRIMARY KEY (PO_ID),
FOREIGN KEY (V_ID)
);

but get


What does that mean?

oh DUH, I cant have a FK yet

1 Like

especially if you don’t say which table it references

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.