I'm getting the shown error in the code below, having copied the foreign key line stuff from the tutorial shown in the second image. Even after looking at this and other tutorials throughout the day I'm still not seeing where the problem is. Could someone please point out what's wrong?
MySQL Syntax Error After Adding FOREIGN KEY REFERENCE
database-designMySQL
Related Question
- MySQL – Fixing Syntax Error with OUTFILE and Timestamp
- Database Design – Proper Way to Design a Database
- MySQL Error 1215 – Cannot Add Foreign Key Constraint in MySQL Workbench
- Sql-server – Purging of unreferenced data via unconditional DELETE, by leaning on foreign key constraints
- SQLite3 FOREIGN KEY Constraint Failed – Solutions
Best Answer
Try:
E.g.
Or ...
E.g.