I want to create a table named "user" in mysql with the follwing command :
mysql>CREATE TABLE user ( usernumber mediumint(10) DEFAULT '0' NOT NULL AUTO_INCREMENT , userid VARCHAR(8) BINARY NOT NULL, userpassword VARCHAR(20) BINARY NOT NULL, PRIMARY KEY (userid), UNIQUE usernumber (usernumber)); the error messege it is giving is ERROR 1067(42000): invalid default value for 'usernumber'
2007-02-21
02:05:31
·
3 answers
·
asked by
tejaswi sharma
1
in
Computers & Internet
➔ Programming & Design