- 博客(1)
- 资源 (1)
- 收藏
- 关注
原创 -- 时间戳转化为日期格式 select to_char((2114360100/86400)+ to_date('1970-01-01 05:45:00','yyyy-mm-dd hh24:mi:s
– 时间戳转化为日期格式 select to_char((2114360100/86400)+ to_date(‘1970-01-01 05:45:00’,‘yyyy-mm-dd hh24:mi:ss’),‘yyyy-mm-dd hh24:mi:ss’) from dual; 86400 一天的秒数 05:45:00按当地时区(UTC+05:45:00) ...
2019-07-06 12:35:12 1092
Oracle中的四舍五入函数
select round(1.66,1) from dual;-- 四舍五入,精确到1位小数
select round(1.56) from dual;-- 四舍五入,无小数
select trunc(89.115,2) from dual;-- 保留到小数位数
2019-04-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人