武动乾坤顶点,嫣然一笑请上勾txt,cz3991航班
毫秒转换为日期
select to_char(1406538765000 / (1000 * 60 * 60 * 24) + to_date('1970-01-01 08:00:00', 'yyyy-mm-dd hh:mi:ss'), 'yyyy-mm-dd hh24:mi:ss') as cdate from dual;
日期转换毫秒
select to_number(to_date('2014-07-28 17:12:45', 'yyyy-mm-dd hh24:mi:ss') - to_date('1970-01-01 8:0:0', 'yyyy-mm-dd hh24:mi:ss')) * 24 * 60 * 60 * 1000 from dual;
获取系统当前时间
select to_char(sysdate,'yyyy-mm-dd hh24:mi:ss') from dual;
注意:毫秒转换为日期 格式化的时间可以是12小时制和24小时制。
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Oracle字符串函数length、upper、lower、initcap、 concat、instr、replace
网友评论