一,日期相关的函数 Select to_char(sysdate,'Q') from dual;--指定日期的季度 Select to_char(sysdate,'MM') from dual;--月份 Select to_char(sysdate,'WW') from dual;--当年第几周 Select to_char(sysdate,'W') from dual ;--本月第几周 Select to_char(sysdate,'DD') from dual;--当月第几天 Select…
oracle sql日期比较:在今天之前: select * from up_date where update < to_date('2007-09-07 00:00:00','yyyy-mm-dd hh24:mi:ss')select * from up_date where update <= to_date('2007-09-07 00:00:00','yyyy-mm-dd hh24:mi:ss') 在今天只后: select * from up_date where update &…
转自:http://hi.baidu.com/fengboy_7334/blog/item/b0aa60035f36a1e809fa935d.html 例如:select * from c where cdate>=to_date('2010-10-14 14:00:00','yyyy-mm-dd hh24:mi:ss') select * from mytable where to_char(install_date,'YYYYMMDD') > '20050101' select * …