CREATE TABLE modapp (
appid smallint(5) unsigned DEFAULT '0' NOT NULL auto_increment,
userid smallint(4) NOT NULL,
theone varchar(100) NOT NULL,
wichforum varchar(100) NOT NULL,
connection varchar(100) NOT NULL,
internet varchar(100) NOT NULL,
other varchar(100) NOT NULL,
other_forum_names varchar(100) NOT NULL,
english varchar(100) NOT NULL,
other_m varchar(100) NOT NULL,
name varchar(100) NOT NULL,
email varchar(100) NOT NULL,
username varchar(100) NOT NULL,
websites varchar(100) NOT NULL,
about varchar(200) NOT NULL,
ratetotal varchar(100) NOT NULL,
PRIMARY KEY (appid)
);
升级时出现
Discuz! info: MySQL Query Error
User: 喜欢
Time: 2005-8-28 11:45pm
Script: /bbs/admincp.php
SQL: CREATE TABLE modapp ( appid smallint(5) unsigned DEFAULT '0' NOT NULL auto_increment, userid smallint(4) NOT NULL, theone varchar(100) NOT NULL, wichforum varchar(100) NOT NULL, connection varchar(100) NOT NULL, internet varchar(100) NOT NULL, other varchar(100) NOT NULL, other_forum_names varchar(100) NOT NULL, english varchar(100) NOT NULL, other_m varchar(100) NOT NULL, name varchar(100) NOT NULL, email varchar(100) NOT NULL, username varchar(100) NOT NULL, websites varchar(100) NOT NULL, about varchar(200) NOT NULL, ratetotal varchar(100) NOT NULL, PRIMARY KEY (appid));
Error: Invalid default value for 'appid'
Errno.: 1067
Similar error report has beed dispatched to administrator before.
这是什么原因?
PHP版本 WINNT / PHP v5.0.2
MYSQL版本 5.0.11-beta-nt
[ 本帖最后由 湮灭冰痕 于 2005-8-29 00:05 编辑 ] |