我有以下查询:
SELECT
IF(COUNT(*) > 0, COUNT(*), '0') AS Found,
IF(NWLat, NWLat, '0') AS NWLat,
IF(NWLon, NWLon, '0') AS NWLon,
IF(SELat, SELat, '0') AS SELat,
IF(SELon, SELon, '0') AS SELon
FROM s
WHERE s.ci = '4'
AND s.snf = 'Ch'
GROUP BY s.sid
现在它返回匹配查询的行。但是,当没有任何内容匹配时,它不会返回任何内容。如果什么也没找到,我怎样才能让它返回“Found: 0, NWLat: 0, NWLon: 0, SELat: 0, SELon: 0”?