Instead of NULL how do I show `0` in result with SELECT statement sql?

前端 未结 4 1638
深忆病人
深忆病人 2020-12-05 07:47

I have one stored procedure which is giving me an output (I stored it in a #temp table) and that output I\'m passing to another scalar function.

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-05 08:03

    You could use this:

    SELECT Ename , Eid , ISNULL(Eprice, 0) as Eprice, Ecountry from Etable
    Where Ecountry = 'India'
    

提交回复
热议问题