$sql = "(SELECT * FROM table1 WHERE col1 LIKE '%Computers%'
AND PRICE <= 400
AND BUYURL IS NOT NULL
AND IMAGEURL IS NOT NULL )
UNION
(SELECT DISTINCT * FROM table2 WHERE col2 LIKE '%desktop computer%'
AND PRICE <= 400
AND BUYURL IS NOT NULL
AND IMAGEURL IS NOT NULL )
ORDER BY PRICE ASC";
上面的查询返回“价格”有时超过 400 的值。有人可以帮忙吗?谢谢。