学习SQL日记--case a when 1 then x when 2 then y else a end
来源:互联网 发布:开源微信微商城源码 编辑:程序博客网 时间:2024/04/30 05:37
declare @table table (a varchar(2),b varchar(2))
insert into @table
select 'cc','a1' union all
select 'cc','b2'
select a,case when a='cc' and b='a1' then 'b5' else b end as b from @table
/*
a b
---- ----
cc b5
cc b2
*/
2011-05-05
http://topic.csdn.net/u/20110504/13/2cb2b395-4ea4-462a-a22f-d78c9251bd26.html
- 学习SQL日记--case a when 1 then x when 2 then y else a end
- sql case when then else end
- Sql语句-case when then else end
- sql case when then else end
- case when then else end
- case when then else end
- case when then else end
- case+when+then+else+end
- case when then else end
- case when then else end
- case when then else end
- case .. when .. then .. else .. end
- case when then else end
- case when then else end
- Case when then else end
- case when then else end
- case when then else end
- case when函数 case when then when then else end
- 错误:expected class-name before ‘{’ token
- Android SDK Platforms 提取下载
- Android程序如何兼容多种分辨率
- 递归
- C/C++系列: static用法总结
- 学习SQL日记--case a when 1 then x when 2 then y else a end
- bcb使用com是导入类型库和使用Vclskin皮肤
- 整数划分
- 准备开始学习hadoop--hadoop的学习资料
- 最简单HDFS读取文件
- 抽象类 接口
- Turbo C 2.0 典藏
- javascript true false 表单与表单元素
- JProfiler学习笔记