当前位置:Gxlcms > PHP教程 > php数据库导入数据问题

php数据库导入数据问题

时间:2021-07-01 10:21:17 帮助过:44人阅读

php数据数据库

错误
SQL 查询:

-- Database: 'rocboss'


-- 表的结构 'roc_attachment'

CREATE TABLE IF NOT EXISTS 'roc_attachment'(

'id'INT( 11 ) UNSIGNED NOT NULL ,
'uid'MEDIUMINT( 8 ) UNSIGNED NOT NULL ,
'path'VARCHAR( 128 ) NOT NULL ,
'time'INT( 11 ) UNSIGNED NOT NULL ,
'tid'INT( 11 ) UNSIGNED NOT NULL DEFAULT '0',
'pid'INT( 11 ) UNSIGNED NOT NULL DEFAULT '0'
) ENGINE = MYISAM AUTO_INCREMENT =3 DEFAULT CHARSET = utf8 ROW_FORMAT = DYNAMIC ;

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 ''roc_attachment' (
'id' int(11) unsigned NOT NULL,
'uid' mediumint(8) unsign' at line 11

求大神  做好的数据想往数据库里面导 MySQL数据库

人气教程排行