我有它運行該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