Home  >  Article  >  Backend Development  >  急 MySQL Error# 1064,该如何处理

急 MySQL Error# 1064,该如何处理

WBOY
WBOYOriginal
2016-06-13 12:53:541291browse

急: MySQL Error#: 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 'FROM bbs_sub LEFT OUTER JOIN bbs_rep ON bbs_sub.bbs_ID=bbs_rep.bbs_sub_ID GROUP ' at line 1

    这个问题在网上搜了一下,遇到的人不少,解决的却不多,俺这个菜鸟遇到后更是没办法,特来此请高手赐教,多谢!!!


------解决方案--------------------
1064错误是最常见的错误,它是指SQL语句中出现了语法错误。从它的提示 
syntax to use near 'FROM bbs_sub 
可以找到 FROM bbs_sub 附近有一处错误。
AS LatesTime,
FROM bbs_sub 

这儿多了个逗号,所以引起了歧义
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn