0

我想在这里使用日期条件

SELECT COALESCE(SUM(IF(a=1 OR b=0 OR c=1 OR d=0 AND date BETWEEN '1336544083' AND '1336544081'  1, 0)),0) AS AC FROM tbl_people WHERE `Id` = '2'

这种方法正确吗?

4

0 回答 0