plodos Posted December 20, 2008 Share Posted December 20, 2008 MySQL Version: 5.0.16 CREATE TABLE IF NOT EXISTS `research_field` ( `id` int(11) NOT NULL auto_increment, `field` varchar(250) collate latin1_general_ci NOT NULL ) CREATE TABLE IF NOT EXISTS `reviewer_research_field` ( `user` int(11) NOT NULL, `research_field_id` int(11) NOT NULL ) Error : #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 'CREATE TABLE IF NOT EXISTS `reviewer_research_field` ( `user` int(11) NOT NUL' at line 7 What is the problem ? Quote Link to comment https://forums.phpfreaks.com/topic/137840-solved-create-table-problem-check-the-table-please/ Share on other sites More sharing options...
plodos Posted December 20, 2008 Author Share Posted December 20, 2008 i didnt add PRIMARY KEY (`id`) for first field Quote Link to comment https://forums.phpfreaks.com/topic/137840-solved-create-table-problem-check-the-table-please/#findComment-720407 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.