我有它运行该SQL查询laravel应用:SQL - 您的SQL语法有错误吗?
SELECT *
FROM `restaurants`
WHERE ABS(-122.1430195 - long) < 0.217125
AND ABS(37.4418834 - lat) < 0.26937
AND FIND_IN_SET(egg, allergies) > 0;
)
我得到这个errror:
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
我有更复杂的SQL相对较新,我一直在网上找,我可以不知道。任何帮助是极大的赞赏。谢谢!
你并不需要最后的括号。 – 2014-09-06 06:38:08