时间处理总结(二)oracle

不断总结中.................

1.等于
land.djsj=to_date('2016/7/26','yyyy-MM-dd')
2.大于等于
land.djsj>=to_date('2016/7/26','yyyy-MM-dd')
3.小于等于
land.djsj<=to_date('2016/7/26','yyyy-MM-dd')
4.区间
land.djsj>=to_date('2016/7/26','yyyy-MM-dd') and land.djsj<=to_date('2016/7/26','yyyy-MM-dd')

5.日期格式
to_date('2007-09-07 00:00:00','yyyy-mm-dd hh24:mi:ss')
to_date('2016/7/26','yyyy-MM-dd')

6.获取当前时间
SYSDATE();
7.格式化时间
TO_CHAR(SYSDATE(),'YYYY/MM/DD HH24:MI:SS')

原文地址:https://www.cnblogs.com/bobo-show/p/5707659.html