oracle中获取当前整点和上一个小时整点,日期类型

select to_date(to_char(sysdate,'yyyy-mm-dd hh'),'yyyy-mm-dd hh:mi:ss') from dual;
select to_date(to_char(SYSDATE - 1 / 24,'yyyy-mm-dd hh'),'yyyy-mm-dd hh:mi:ss') from dual;

posted on 2017-11-09 10:07  七七2020  阅读(7457)  评论(0编辑  收藏  举报

导航