oracle ifelse sql 语句

sql1:

1 select sfwb
2 from tab_jxgd

运行:

sql2:

1 select (CASE sfwb WHEN 'y' THEN '' ELSE '' END) sfwb
2 from tab_jxgd

运行:

1 
1.select * from t_meetting_application t where to_date('2010-10-27 10:30:00', 'yyyy-mm-dd hh24:mi:ss') between t.starttime and t.endtime
2.select * from t_meetting_application t where t.starttime between to_date('2010-10-27 1:30:00', 'yyyy-mm-dd hh24:mi:ss') and to_date('2010-10-27 13:30:00', 'yyyy-mm-dd hh24:mi:ss')
原文地址:https://www.cnblogs.com/zhangwei595806165/p/2859875.html