Skip to content
Advertisement

Foreign Key on MySQL

I am new to SQL and I started building my own project. I am having issues creating a foreign key on my second table. code screenshot. Please let me know what I am missing here.

Advertisement

Answer

The second CREATE TABLE statement should be:

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement