else if decode oracle
decode:http://blog.csdn.net/jssg_tzw/archive/2009/04/21/4097923.aspx
SELECT col1, col2, CASE WHEN col3 > 1 AND col3 <2 THEN '1' WHEN col3 > 2 AND col3 <3 THEN '2' WHEN col3 > 3 AND col3 <4 THEN '3' ELSE '4' END mylevel FROM table1 select case when nsrsbh='330165737758262' then nsrsbh when nsrsbh='330106745808709' then nsrsbh else '99999' end from WS_TDS_SQ decode(条件,值1,返回值1,值2,返回值2,...值n,返回值n,缺省值) decode(字段或字段的运算,值1,值2,值3) ELECT DECODE (value, <if this value>, <return this value>) FROM table select decode(nsrsbh,'330165737758262',nsrsbh,'330106745808709',nsrsbh,0) from WS_TDS_SQ select decode(nsrsbh,'330165737758262','6','9') from WS_TDS_SQ
相关推荐
bianxq 2020-05-16
Streamoutput 2020-05-01
Streamoutput 2020-04-30
LuoXinLoves 2020-03-26
zhangxiaojiakele 2019-12-21
Nicolase 2019-12-19
us0 2019-09-05
yanghuatong 2013-05-04
不懂 2019-07-07
qiguiting 2019-07-01
CoreyJia 2015-05-29
linkincsdn 2013-07-04
87497718 2012-04-18
89367267 2011-09-17
lester 2018-08-31
katnisswuyuechen 2018-12-21
千里之行始于足下 2014-04-22