原帖由 leeleeang 于 2007-7-1 17:49 发表
Discuz! info: MySQL Query Error
User: lee
Time: 2007-7-1 5:49pm
Script: /plugin.php
SQL: SELECT pid FROM gallery WHERE aid=0 and fid IN (17) ORDER BY pid DESC
Error: Unknown column 'aid' ...
樓主有補上了
再重新升級一次既可
CREATE TABLE `cdb_gallery` (
`gid` INT( 12 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`fid` INT( 6 ) NOT NULL ,
`aid` INT( 12 ) NOT NULL DEFAULT 0,
`tid` INT( 12 ) NOT NULL ,
`pid` INT( 15 ) NOT NULL ,
`typeid` INT( 6 ) NOT NULL ,
`authorid` INT( 16 ) NOT NULL ,
`author` VARCHAR( 18 ) NOT NULL ,
`readperm` INT( 5 ) NOT NULL ,
`price` INT( 5 ) NOT NULL ,
`subject` VARCHAR( 80 ) NOT NULL ,
`dateline` INT( 18 ) NOT NULL ,
`picture` VARCHAR( 200 ) NOT NULL ,
`views` INT( 15 ) NOT NULL
) ENGINE=MyISAM; |