rofl90 Posted June 12, 2008 Share Posted June 12, 2008 ALTER TABLE `bugs` ADD `network` ENUM( myspace, facebook, hi5, friendster, homepage, bebo ) NOT NULL , ADD `debugInfo` TEXT NOT NULL MySQL said: Documentation #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 'myspace, facebook, hi5, friendster, homepage, bebo) NOT NULL, ADD `debugInfo` TE' at line 1 Very cryptic Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted June 12, 2008 Share Posted June 12, 2008 You need wrap quotes around the words defined in ENUM. ALTER TABLE `bugs` ADD `network` ENUM( 'myspace', 'facebook', 'hi5', 'friendster', 'homepage', 'bebo' ) NOT NULL , ADD `debugInfo` TEXT NOT NULL Quote Link to comment 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.