eaglelegend Posted October 24, 2008 Share Posted October 24, 2008 hey this is what comes up when I try dyumping my sql tables in my database, I am unsure what is up? [code][code]SQL query: CREATE TABLE colors( id int( 11 ) DEFAULT '0' NOT NULL AUTO_INCREMENT , hex varchar( 6 ) DEFAULT 'dddddd' NOT NULL , label varchar( 20 ) DEFAULT 'Medium Gray' NOT NULL , PRIMARY KEY ( id ) ); MySQL said: #1067 - Invalid default value for 'id' [/code] [/code] Quote Link to comment https://forums.phpfreaks.com/topic/129872-sql-error-somewhere/ Share on other sites More sharing options...
Chicken Little Posted October 24, 2008 Share Posted October 24, 2008 Browse the structure of the table and see if you can change the id field to int(11) unsigned NOT NULL auto_increment The id field is set to autoincrement (zero wouldn't apply). Quote Link to comment https://forums.phpfreaks.com/topic/129872-sql-error-somewhere/#findComment-673329 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.