[quote] COALESCE函数,能将null值转换成其他值来替换 eg:SELECT COALESCE(NUM,0) FROM RESULT 如果num字段的值有null的记录将用0替换结果。 [/quote]