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'
この方法は正しいですか?