欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

php数据库导入数据问题

程序员文章站 2022-06-14 21:10:56
...
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数据库