MySQL Forums
Forum List  »  MySQL Workbench

Re: Error 1064: You have an error in your SQL syntax;
Posted by: Peter Brawley
Date: April 18, 2022 02:02PM

Quote

...
CONSTRAINT `patient_id`
FOREIGN KEY ()
REFERENCES `hospital_tess`.`patient` ()
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `doctor_id`
FOREIGN KEY ()
REFERENCES `hospital_tess`.`doctor` ()
ON DELETE NO ACTION
ON UPDATE NO ACTION,
...

Column names are missing where you see empty parens. How did you get WB to do that?

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Error 1064: You have an error in your SQL syntax;
422
April 18, 2022 02:02PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.