输入banner图图片脚本导航/分类

oracle 中时间类型 date 与 long 互转

sysdate, (sysdate-to_date(1970-01-01 08:00:00,yyyy-mm-dd hh24:mi:ss))* 24*60*60*1000 current_milli from dual;

2、long转date:

select to_date(1970-01-01 08:00:00,yyyy-mm-dd hh24:mi:ss) + 1241450728000/1000/24/60/60 from dual

其中为什么是 1970-01-01 08:00:00  而不是 1970-01-01 00:00:00是因为我们是东八区呀。

 

oracle 中时间类型 date 与 long 互转

标签:htm   转行   integer   为什么   项目   www.   格式   sel   long