MySQL Foreign Key syntax
Posted: Tue Sep 21, 2004 1:21 pm
I'm making a table and I want this column to be a Foreign Key:
I haven't been able to get it to create the table (it gives me a "syntax" error at this line). I've already cosulted the MySQL readme and a book called "Managing and Using MySQL", but I can't seem to figure it out. I'm just using the MySQL console. Could someone be so kind as to tell me how it needs to be specified?
Code: Select all
...,
column_name TINYINT UNSIGNED NOT NULL,
...