我觉得数据库建表的时候是不是有问题???!!!
CREATE TABLE `cdb_quesoption` (
`id` int(10) unsigned NOT NULL auto_increment,
`qid` int(10) unsigned NOT NULL,
`type` text NOT NULL default '',
`check` mediumtext NOT NULL default '',
`question` mediumtext NOT NULL default '',
`key` mediumtext NOT NULL default '',
`open` tinyint(1) NOT NULL default '1',
`mark` mediumint(8) NOT NULL default '0',
`amust` tinyint(1) NOT NULL default '1',
`answeruser` mediumtext NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
得到的反馈是
MySQL 返回:
#1101 - BLOB/TEXT column 'type' can't have a default value
说blob或text这样的列不能有默认值!!!
能回答下吗???这个应该和mysql的版本没什么关系吧! |