oracle中case when then及decode用法
来源:互联网 发布:24小时私人网络上借钱 编辑:程序博客网 时间:2024/05/16 15:45
decode函数:
decode(条件,值1,返回值1,值2,返回值2,…….,缺省值)
一个Update语句:把表中某个字段的值进行更改,这条语句是把值为“1”的都改成“8”,“0”改成“9”
update tablename set 字段名= decode(字段名,1,8,0,9) where 字段名 in (1, 0);
case…when…then:
– 写法一:
case(条件)
when 值1 then 返回值1
when 值2 then 返回值2
else 缺省值
– 写法二:
case when 条件1 then 返回值1
when 条件2 then 返回值2
else 缺省值
end;
1 0
- oracle中case when then及decode用法
- ORACLE 中 DECODE 与 CASE WHEN THEN 用法
- mysql中case-when-then和oracle的decode函数
- SQL Server和Oracle中case when then 的用法及when like 的使用
- Oracle--decode函数、(case when then else end )和(update set replace)的用法
- Oracle中的case when then 用法.
- Oracle中case when和decode的用法
- select中case-when-then用法
- sql中case when then简单用法
- sqlserver中case when then用法
- SQL中case when then用法
- SQL中CASE WHEN THEN的用法
- SQL中case when then 用法
- SQL中case when then用法
- oracle case when then
- oracle case when then
- oracle case when then
- oracle 中when then else与decode的两种用法,null
- 第十周项目3--利用二叉树遍历思想解决问题
- Spring-03-利用注解配置应用IOC
- ARM寄存器介绍
- bzoj 2002 [Hnoi2010]Bounce 弹飞绵羊 [分块][特殊处理]
- 将sublime text3添加到右键菜单中(可执行)
- oracle中case when then及decode用法
- 责任链模式
- usaco Milking Cows (贪心)
- NOIP2015 写后感
- C# & WPF 随手小计之一 ——初探async await 实现多线程处理
- bzoj 3926 [Zjoi2015]诸神眷顾的幻想乡 后缀自动机
- hdu 2181:哈密顿绕行世界问题(dfs)
- CATransform3D 特效详解
- 命令模式