1、问题:在一些行中包含空值,需要使用非空的值来代替
2、解决办法:1、使用COALESCE 函数来替换空值select coalesce(column,0)from t0
3、使用case 来替换空值select case when column is null then 0 else column endfrom t0
1、问题:在一些行中包含空值,需要使用非空的值来代替
2、解决办法:1、使用COALESCE 函数来替换空值select coalesce(column,0)from t0
3、使用case 来替换空值select case when column is null then 0 else column endfrom t0