誰能幫我查一下這個SQL語句正在此錯誤:一些幫助找到在這個SQL語句中的錯誤
Error
> SQL query:
>
> CREATE TABLE `dp_banks` (
> `id` int(11) NOT NULL AUTO_INCREMENT ,
> `owner` int(11) NOT NULL default '0',
> `bname` varchar(128) NOT NULL default '',
> `baddress` varchar(128) NOT NULL default '',
> `bcity` varchar(64) NOT NULL default '',
> `bzip` varchar(16) NOT NULL default '',
> `bcountry` char(2) NOT NULL default '',
> `bstate` varchar(32) NOT NULL default '',
> `bphone` varchar(32) NOT NULL default '',
> `bnameacc` varchar(128) NOT NULL default '',
> `baccount` varchar(32) NOT NULL default '',
> `btype` char(2) NOT NULL default '',
> `brtgnum` varchar(9) NOT NULL default '',
> `bswift` varchar(32) NOT NULL default '',
> `status` tinyint(1) NOT NULL default '0',
> `default` tinyint(1) NOT NULL default '0',
> PRIMARY KEY (`id`)
> ) TYPE = MYISAM AUTO_INCREMENT =1;
>
> MySQL said: Documentation
> #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to
> use near 'TYPE=MyISAM AUTO_INCREMENT=1' at line 19
下面是主要代碼:
--
-- Table structure for table `dp_banks`
--
DROP TABLE IF EXISTS `dp_banks`;
CREATE TABLE `dp_banks` (
`id` int(11) NOT NULL auto_increment,
`owner` int(11) NOT NULL default '0',
`bname` varchar(128) NOT NULL default '',
`baddress` varchar(128) NOT NULL default '',
`bcity` varchar(64) NOT NULL default '',
`bzip` varchar(16) NOT NULL default '',
`bcountry` char(2) NOT NULL default '',
`bstate` varchar(32) NOT NULL default '',
`bphone` varchar(32) NOT NULL default '',
`bnameacc` varchar(128) NOT NULL default '',
`baccount` varchar(32) NOT NULL default '',
`btype` char(2) NOT NULL default '',
`brtgnum` varchar(9) NOT NULL default '',
`bswift` varchar(32) NOT NULL default '',
`status` tinyint(1) NOT NULL default '0',
`default` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
我將不勝感激任何快速幫助。我已盡最大努力來調試,但都無濟於事。
感謝
[MySQL的錯誤 'TYPE = MyISAM的']的可能重複(http://stackoverflow.com/questions/11471075/mysql-error-type-myisam) – 2013-03-07 19:05:21
可能重複[CREATE TABLE ... TYPE = MYISAM]中的1064錯誤](http://stackoverflow.com/questions/12428755/1064-error-in-create-table-type-myisam) – Jocelyn 2013-04-09 09:19:34