摘要:
1.利用SqlServer中的case when来把数据查询出来的数据替换成其它值显示2.结果对比:普通select查询出来的结果如下:用了case when方法后显示结果如下:3.具体使用代码如下:select cInvCode,cValueType, case when cValueType='全月平均法' then 'S' when cValueType='计划价法' then 'J' else '' end as cValueType,isnull(iInvRCost,0) from Inventory作者 阅读全文
posted @ 2013-11-11 15:58
王春天
阅读(1707)
评论(0)
推荐(0)

浙公网安备 33010602011771号