Question
MySQL Error 1064
Hi guys,
I have this table I wish to create in MySQL but it does not seem to let me create it.
Is it due to this: ENGINE=MyISAM
I would like to know how I can get rid of this error
mysql> CREATE TABLE `mall_admin` (
-> `AdminID` int(10) NOT NULL auto_increment,
-> `AdminUsername` varchar(50) NOT NULL default '',
-> `AdminPassword` varchar(50) NOT NULL default '',
-> PRIMARY KEY (`AdminID`),
-> UNIQUE KEY `AdminUsername` (`AdminUsername`)
-> ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
ERROR 1064: You have an error in your SQL syntax near 'ENGINE=MyISAM DEFAULT CH
ARSET=latin1 AUTO_INCREMENT=2' at line 7
mysql>
Can anyone shed some light on this?
I have this table I wish to create in MySQL but it does not seem to let me create it.
Is it due to this: ENGINE=MyISAM
I would like to know how I can get rid of this error
mysql> CREATE TABLE `mall_admin` (
-> `AdminID` int(10) NOT NULL auto_increment,
-> `AdminUsername` varchar(50) NOT NULL default '',
-> `AdminPassword` varchar(50) NOT NULL default '',
-> PRIMARY KEY (`AdminID`),
-> UNIQUE KEY `AdminUsername` (`AdminUsername`)
-> ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
ERROR 1064: You have an error in your SQL syntax near 'ENGINE=MyISAM DEFAULT CH
ARSET=latin1 AUTO_INCREMENT=2' at line 7
mysql>
Can anyone shed some light on this?
