select isnull(point,0) from news where id=1

解决方案 »

  1.   

    if @@rowcount = 0
    return 0
      

  2.   

    上面写错了select isnull((select top 1 point from news where id=1),0)
      

  3.   

    if not exists(Select Sub(point) Form News where id = 1)
    return 0
      

  4.   

    select isnull((select top 1 point from news where id=1),0)
      

  5.   

    select isnull(a.SumPoint,0) from (Select Sub(point) as SumPoint Form News where id = 1) a
      

  6.   

    Select isnull(point,0) as point Form News where id = 1
      

  7.   

    Select Coalesce(point,0) Form News where id = 1
      

  8.   

    Select Sub(point) Form News where id = 1
    if @@rowcount=0
     return 0
      

  9.   

    Select Sub(isnull(point,0)) Form News where id = 1
      

  10.   

    SELECT ISNULL(POINT ,0) FROM NEWS WHERE [ID]=1
      

  11.   

    SELECT ISNULL(POINT ,0) FROM NEWS WHERE [ID]=1