oracle if-else sql 语句

sql1:

1 select sfwb
2 from tab_jxgd

运行:

oracle if-else sql 语句

sql2:

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

运行:

oracle if-else sql 语句

 

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')

 

上一篇:if....elif...else语句


下一篇:Java EE WEB工程师培训-JDBC+Servlet+JSP整合开发之11.Servlet简介