View Single Post
Old 02-18-2013, 01:48 AM   PM User | #7
Ctechinfo
New Coder

 
Join Date: Sep 2012
Posts: 88
Thanks: 3
Thanked 3 Times in 3 Posts
Ctechinfo is an unknown quantity at this point
Error

SQL query:

CREATE TABLE codeNames(

boardID INT,
codeName VARCHAR( 100) ,
CONSTRAINTFOREIGNKEY boardID REFERENCES allBoards( boardID )
) ENGINE INNODB;



MySQL said:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'REFERENCES allBoards(boardID)
) ENGINE INNODB' at line 4

Last edited by Ctechinfo; 02-18-2013 at 01:59 AM..
Ctechinfo is offline   Reply With Quote