0
点赞
收藏
分享

微信扫一扫

oracle中取时间

十日十月Freddie 2022-03-22 阅读 28
oracle

--得到当天凌晨0点0分0秒的日期 
select trunc(sysdate) from dual; 
-- 得到这天的最后一秒 
select trunc(sysdate) + 0.99999 from dual; 
-- 得到小时的具体数值 
select trunc(sysdate) + 1/24 from dual; 
select trunc(sysdate) + 7/24 from dual; 

举报

相关推荐

0 条评论