【发布时间】:2014-06-14 01:34:29
【问题描述】:
SQL
DELETE FROM sex s, users u WHERE s.id = 195 and u.id = s.uid and u.sessionCheck = 'd986a074c7549c566bfed1d4ad7ca491'
错误
#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 's, users u WHERE s.id = 195 and u.id = s.uid and u.sessionCheck = 'd986a074c7549' at line 1
很明显错误在于删除中的连接。但是我尝试过的一切都行不通。
我正在使用Server version: 5.6.16 - MySQL Community Server (GPL)
【问题讨论】:
-
这个问题是由一个简单的印刷错误引起的。虽然类似的问题可能是这里的主题,但这个问题的解决方式不太可能帮助未来的读者。
-
@JamieHutber 你一定是用错了谷歌。我搜索并返回了 102,000 个结果。
-
@Kermit 那是因为谷歌没有文档......
-
@JamieHutber,您应该以更有意义的方式重组该句子。