在当地的服务器上工作,但没有住

时间:2017-08-29 12:06:19

标签: sql

SELECT * FROM `projects` WHERE `min_price` >= '500000 ' AND `max_price` <= ' 50000000' AND `deleted` =0 AND `blocked` =0 ORDER BY `id` DESC

这在本地服务器上运行正常但在实时服务器上运行正常。 随处括号enter image description here

1 个答案:

答案 0 :(得分:2)

比较值有一个额外的空间。移除额外的空间,它将起作用。

SELECT * FROM `projects` WHERE `min_price` >= '500000' 
AND `max_price` <= '50000000' AND `deleted` =0 AND `blocked` =0 ORDER BY `id` DESC