I did this and for afew other tables to create. but for what was in this txt file:
PHP Code:
CREATE TABLE weather_country (
countryid smallint(6) NOT NULL auto_increment,
regionid smallint(6) NOT NULL default '0',
country_title varchar(50) NOT NULL default '',
PRIMARY KEY (countryid)
) TYPE=MyISAM;
I got this error:
PHP Code:
Error
SQL-query : [Edit]
CREATE TABLE `weather_country` (`countryid` SMALLINT(6) NOT NULL AUTO_INCREMENT, `regionid` SMALLINT(6) DEFAULT '0' NOT NULL, `country_title` VARCHAR(50) NOT NULL ) TYPE = MYISAM comment = 'PRIMARY KEY (countryid)'
MySQL said:
Incorrect table definition; There can only be one auto column and it must be defined as a key
Back