数据库导入问题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;
有语法错误吗 展开
`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;
有语法错误吗 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询