Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
123
返回列表 发新帖

ss6.0.1聚合dz7.1报错

[复制链接]
muziyiping 发表于 2010-3-26 22:20:48 | 显示全部楼层
CREATE TABLE IF NOT EXISTS `cdb_myposts` (
  `uid` mediumint(8) unsigned NOT NULL default '0',
  `tid` mediumint(8) unsigned NOT NULL default '0',
  `pid` int(10) unsigned NOT NULL default '0',
  `position` smallint(6) unsigned NOT NULL default '0',
  `dateline` int(10) unsigned NOT NULL default '0',
  `special` tinyint(1) unsigned NOT NULL default '0',
  PRIMARY KEY  (`uid`,`tid`),
  KEY `tid` (`tid`,`dateline`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

CREATE TABLE IF NOT EXISTS `cdb_mythreads` (
  `uid` mediumint(8) unsigned NOT NULL default '0',
  `tid` mediumint(8) unsigned NOT NULL default '0',
  `special` tinyint(1) unsigned NOT NULL default '0',
  `dateline` int(10) NOT NULL default '0',
  PRIMARY KEY  (`uid`,`tid`),
  KEY `tid` (`tid`,`dateline`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

复制进去,还是解决不了,为什么呢?
回复

使用道具 举报

muziyiping 发表于 2010-3-26 22:21:28 | 显示全部楼层
出现这个错误:::

错误
SQL 查询:

CREATE TABLE IF NOT EXISTS `cdb_myposts` (

`uid` mediumint( 8 ) unsigned NOT NULL default '0',
`tid` mediumint( 8 ) unsigned NOT NULL default '0',
`pid` int( 10 ) unsigned NOT NULL default '0',
`position` smallint( 6 ) unsigned NOT NULL default '0',
`dateline` int( 10 ) unsigned NOT NULL default '0',
`special` tinyint( 1 ) unsigned NOT NULL default '0',
PRIMARY KEY ( `uid` , `tid` ) ,
KEY `tid` ( `tid` , `dateline` ) ) ENGINE = MYISAM DEFAULT CHARSET = gbk;



MySQL 返回:

#1064 - You have an error in your SQL syntax near 'ENGINE=MyISAM DEFAULT CHARSET=gbk' at line 10


为什么呢? 请高手告诉我,谢谢哦,
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-28 12:30 , Processed in 0.019680 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表