PL/SQL & Oracle ERP
2009/04/19
Nvl2
nvl2(p1,p2,p3)
表示如下
if p1 is null then
return p3
else
return p2
end if
例 : Nvl2(null,'A','B')
結果 : B
例 : Nvl2('Test','A','B')
結果 : A
結論 : 表示式同decode(p1,null,p3,p2)
兩者間我倒覺得Decode比較看得清楚明白些
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
Tag
Oralce - PL/SQL
(27)
EBS [API]
(11)
EBS [OM]
(7)
C#
(6)
EBS [PO]
(6)
EBS [Admin]
(5)
EBS [BOM]
(4)
EBS [INV]
(4)
EBS [WIP]
(4)
EBS [MRP]
(3)
EBS [WSH]
(3)
ASP.NET
(2)
JAVA Collection
(2)
Oracle
(2)
Oracle Optimization
(2)
EBS [GL]
(1)
EBS [RCV]
(1)
訂閱
發表文章
Atom
發表文章
留言
Atom
留言
關於我自己
小蔡
檢視我的完整簡介
沒有留言:
張貼留言