SELECT SUM(CASE WHEN status='xxx' THEN 1 END) FROM atableSELECT SUM(status='xxx' AND name='yyy') FROM atable
張貼留言
沒有留言:
張貼留言