decode函数
来源:互联网 发布:mac web原型设计工具 编辑:程序博客网 时间:2024/06/10 08:51
select *
from TL_PRODUCTSTOCKPILEN t
where decode(t.i_ldgmonth,
'1',
'01',
'2',
'02',
'3',
'03',
'4',
'04',
'5',
'05',
'6',
'06',
'7',
'07',
'8',
'08',
'9',
'09',
t.i_ldgmonth) = '07'
and t.C_ID not in (select distinct C_ID from TL_TEMPSTOCKPILEN)
含义解释:
decode(条件,值1,翻译值1,值2,翻译值2,...值n,翻译值n,缺省值)
该函数的含义如下:
IF 条件=值1 THEN
RETURN(翻译值1)
ELSIF 条件=值2 THEN
RETURN(翻译值2)
......
ELSIF 条件=值n THEN
RETURN(翻译值n)
ELSE
RETURN(缺省值)
END IF
- decode函数
- Decode 函数
- DECODE函数
- Decode函数
- DECODE()函数
- DECODE()函数
- DECODE函数
- DECODE函数
- Decode函数
- DECODE函数
- DECODE函数
- decode函数
- DECODE函数
- decode函数
- decode函数
- DECODE()函数
- DECODE函数
- decode函数
- 如何为某一件商品添加多个图片
- cursor
- VB传入回调函数指针至VC编写的DLL函数中,应注意的几点
- mysql数据库之left join与join
- Windows常见基本进程七:winlogon
- decode函数
- Spring 的优秀工具类盘点,第 1 部分: 文件资源操作和 Web 相关工具类
- mount的使用
- WEB打印,不需要的地方隐藏掉
- C语言函数调用约定1
- 就这里吧
- PB中读取地磅BCD解码PB中读取地磅BCD解码
- C语言函数调用约定
- 一些漂亮的按钮样式: