只需要有人告诉我这句话是否具有正确的语法;我无法让它正常工作。
SELECT plantname, orderfreq, totalincome
FROM plantreview
WHERE score >='5'
AND recommended='1'
ORDER BY score DESC, LIMIT +0, 5
答案 0 :(得分:1)
假设MySQL,,
之后的ORDER BY
或+
之后不应该有LIMIT
。如果您的列是整数,则也不需要将其用引号括起来。
SELECT plantname, orderfreq, totalincome
FROM plantreview
WHERE score >='5'
AND recommended='1'
ORDER BY score DESC
LIMIT 0, 5