CREATE TABLE `ak_ask` (
`id` INT( 10 ) NOT NULL ,
`problem` VARCHAR( 120 ) NOT NULL COMMENT '问题',
`name` VARCHAR( 30 ) NOT NULL COMMENT '名字',
`qq` INT( 12 ) UNSIGNED NOT NULL COMMENT 'qq号',
`answer` TEXT COMMENT '回答',
`area` CHAR( 30 ) NOT NULL COMMENT '地区',
`atime` INT( 10 ) UNSIGNED NOT NULL COMMENT '提交时间',
`display` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '0' COMMENT
);
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 ')' at line 16
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
数据库代码写入时类型冲突了
使用 mysql -u root -p --default-character-set=utf8 dbName < dbName.sql试试,在导入数据库时指定字符编码方式。