oracle if-else 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')

 

posted @ 2013-01-14 16:08  Seaurl  阅读(4379)  评论(0编辑  收藏  举报