Hello O' MySQL Wise Ones...
I'm entering the following MySQL string into my databse to create a new table:
And I get this error when I try to do so:Code:CREATE TABLE auth ( userid int(4) unsigned zerofill DEFAULT '0000' NOT NULL auto_increment, username varchar(20), userpassword varchar(20), PRIMARY KEY (userid) );
#1067 - Invalid default value for 'userid'
I know nothing about MySQL so any help is appreciated. I got that MySQL query from an online tutorial.
Thanks a million!



Reply With Quote

Bookmarks