设为首页 加入收藏

TOP

sql server中case when的用法
2014-11-24 13:26:27 】 浏览:9717
Tags:sql server case when 用法

sql server中case when的用法
select case
www.2cto.com
when (a.priceType=1) then a.price
when (a.priceType=2) then a.feePrice/10
when (a.priceType=3) then a.price
else 0 end as jige from rsc_info a
www.2cto.com
注意,不要少了 end 结束符。
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇SQL学习整理 下一篇SqlServer和Oracle中一些常用的sq..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目