SQL SERVER 中如何将NULL转换为0

select isnull(fieldname,0) from tablename 如果字段fieldname的值是null,则结果是0

posted @ 2014-12-19 13:26  dekevin  阅读(13205)  评论(1编辑  收藏  举报