生成当前时间戳:select (sysdate-to_date('1970-01-01 08:00:00','yyyy-mm-dd hh24:mi:ss'))*1000*24*3600 from dual
date格式数据生成时间戳:select (to_date(to_char(字段名,'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss')-to_date('1970-01-01 08:00:00','yyyy-mm-dd hh24:mi:ss'))*1000*24*3600 from 表名
我记的当时这个问题研究的甚久甚久,哎,心痛的分享