oracle 函数sign()、ABS()、decode()、case when、
来源:互联网 发布:telnet 端口链接失败 编辑:程序博客网 时间:2024/05/13 16:25
sign()函数:取数字n的符号,大于0返回1,小于0返回-1,等于0返回0
e.g.select sign( 100 ),sign(- 100 ),sign( 0 ) from dual;
- 1.SIGN(123 ) SIGN(- 100 ) SIGN( 0 )
- 2.--------- ---------- ---------
- 3. 1 - 1 0
绝对值 ABS() SQL> SELECT ABS(-7), ABS(7) FROM DUAL; ABS(-7) ABS(7) ---------- ---------- 7 7
select a.*,decode(sign(a.房租-b.房租),1,'奢侈','普通') from 表名 a, (select 城市,avg(房租) 房租 from 表名 group by 城市) b where a.城市=b.城市
- oracle 函数sign()、ABS()、decode()、case when、
- oracle (decode,case when ...then...else...end,sign)函数介绍
- oracle -- case语句--decode and sign 函数
- sql函数sign、decode、 case……when (一)
- Oracle中decode函数与case when的使用
- Oracle中decode函数与case when的使用
- oracle中的nvl 、nvl2、decode、case when 函数的用法
- mysql中case-when-then和oracle的decode函数
- Oracle中decode函数与case when的使用
- oracle中if/else、decode函数、case when
- oracle中的计算函数decode和case when
- Oracle中decode函数对case when的简化
- oracle之case...when, decode函数的使用
- Oracle中的CASE When和Decode比较
- Oracle decode case when 行转列 分组查询
- Oracle的DECODE()和CASE WHEN
- oracle-SQL-case when 改用 DECODE
- Oracle之case when和decode-yellowcong
- 【转】myEclipse 中文 乱码 .
- ado异常代码含义对照表及SQL Access,oracle 数据类型对照表
- 制作jffs2根文件系统
- seach_bin(a[10],m);。。引发的血案。
- Windows套接字IO模型之EventSelect
- oracle 函数sign()、ABS()、decode()、case when、
- [前沿]Mobile web application技术初探
- 内核模块多文件makefile
- zoj 2760 How Many Shortest Path
- jsp乱码问题的解决(引的)
- 哈工大英语协会2011秋季---招新海报
- STM32 IO口学习
- iBatis把一个表的sqlmap配置的多个xml中。
- 网卡的认识