--************ null字段处理 ************
1、PicUrl为null或为空的返回默认值:
select (case when len(isnull(PicUrl,‘‘))=0 then ‘/images/default.jpg‘ else PicUrl end) from user where PicUrl is null
经典SQL语句
原文:http://www.cnblogs.com/qxoffice2008/p/4166612.html