select isnull(你的列,0) from 表

解决方案 »

  1.   

    也可以update 表 set 列=0 where 列 is null
      

  2.   

    楼上update 表 set 列=isnull(列,0)
      

  3.   

    select isnull(你的列,0) from 表
      

  4.   

    select isnull(fieldname,0) from 表
      

  5.   

    Select IsNull(FieldName,0) From Table 
    还有一种方法可以
    Select Case FieldName When 条件1 Then 值1 [When 条件2 Then 值2  ...] Else 值N End FieldName From Table
    这种方法可以用来分离超过二种情况的数据