当前位置: 代码迷 >> Sql Server >> 值的变换
  详细解决方案

值的变换

热度:54   发布时间:2016-04-24 21:30:12.0
值的转换
select TC016  from SFCTC where TC022='N' and TC004='5104' and TC005='13050415'

这个查询出来结果是没有的,可以转换为结果为0吗?谢谢!

------解决方案--------------------

select isnull((select TC016 from SFCTC where TC022='N' and TC004='5104' and TC005='13050415'),0) 'TC016'
  相关解决方案