任何人都可以帮我检查这个 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 ;
-- --------------------------------------------------------
我将不胜感激任何快速帮助。我已尽一切可能进行调试,但都无济于事。
谢谢