Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在这里使用日期条件
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'
这种方法正确吗?