[英]MySQL error while trying to create tables
Ok I'm trying to find a good working cydia repo download counter and my friend gave me one he uses for his reposms that he created but when I try running the sql I run across this error. 好的,我试图找到一个运行良好的cydia repo下载计数器,我的朋友给了我一个供他创建的仓库使用的计数器,但是当我尝试运行sql时遇到了此错误。
#1064 - You have an error in your SQL syntax;
#1064-您的SQL语法有误; check the manual that corresponds to your MySQL server version for the right syntax to use near '"' at line 10
检查与您的MySQL服务器版本相对应的手册,以在第10行的“”附近使用正确的语法
Here is what is in the mysql file: 这是mysql文件中的内容:
CREATE TABLE `download` (
`filename` varchar(255) NOT NULL,
`dldate` DATETIME,
`stats` int(11) NOT NULL,
`ip` varchar(20) NOT NULL default '',
`device` varchar(20) NOT NULL default '',
`firmware` varchar(20) NOT NULL default '',
`agent` varchar(250) NOT NULL default '',
PRIMARY KEY (`filename`)
) ENGINE = MYISAM";
Also I'd like to know how I can display the download information from a file on my php file? 我也想知道如何显示php文件中文件的下载信息?
Remove the "
right before the end. 最后删除
"
。
CREATE TABLE `download`
(
`filename` varchar(255) NOT NULL,
`dldate` DATETIME,
`stats` int(11) NOT NULL,
`ip` varchar(20) NOT NULL default '',
`device` varchar(20) NOT NULL default '',
`firmware` varchar(20) NOT NULL default '',
`agent` varchar(250) NOT NULL default '',
PRIMARY KEY (`filename`)
) ENGINE = MYISAM;
^------here
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.