这时,就需要我们对此进行格式转化,示例如下:
--date转long示例
select sysdate,(sysdate- to_date('1970-01-01','yyyy-mm-dd'))* 24*60*60*1000 as 整型格式 from dual;
--long转date
select to_date('1970-01-0100:00:00','yyyy-mm-dd hh24:mi:ss') + 1241450728000/1000/24/60/60 from dual;Oracle时间格式与整型格式相互转化
标签:oracle number 格式转化
本文系统来源:http://blog.csdn.net/johnnysun2015/article/details/45671857
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!