数据库导入问题phpmyadmin

CREATETABLE`action`(`id`int(2)unsignedNOTNULLAUTO_INCREMENT,`fenlei`varchar(20)NOTNUL... CREATE TABLE `action` (

`id` int( 2 ) unsigned NOT NULL AUTO_INCREMENT ,
`fenlei` varchar( 20 ) NOT NULL ,
`content` longtext NOT NULL ,
`cid` int( 20 ) NOT NULL ,
`time` date NOT NULL ,
PRIMARY KEY ( `id` ) ,
KEY `cid` ( `cid` )
) ENGINE = MYISAM DEFAULT CHARSET = 'gb2312' AUTO_INCREMENT = '21';

MySQL 返回:

#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 'DEFAULT CHARSET='gb2312' AUTO_INCREMENT='21'' at line 9

#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 'DEFAULT CHARSET='gb2312' AUTO_INCREMENT='21'' at line 9
-
-- 表的结构 `action`
--

CREATE TABLE `action` (
`id` int(2) unsigned NOT NULL AUTO_INCREMENT,
`fenlei`

varchar(20) NOT NULL,
`content` longtext NOT NULL,
`cid` int(20) NOT NULL,
`time` date NOT NULL,
PRIMARY KEY (`id`),
KEY `cid`(`cid`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk AUTO_INCREMENT=21;
有语法错误吗
展开
 我来答
智财商言
2009-12-11 · TA获得超过188个赞
知道小有建树答主
回答量:577
采纳率:52%
帮助的人:142万
展开全部
AUTO_INCREMENT = '21'去了试一下
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式