日期:2014-05-17 浏览次数:20843 次
select (sysdate-TO_DATE('19700101','yyyymmdd'))*86400 - TO_NUMBER(SUBSTR(TZ_OFFSET(sessiontimezone),1,3))*3600, col1,col2,col3 from table1
select (sysdate-TO_DATE('19700101','yyyymmdd'))*86400 - TO_NUMBER(SUBSTR(TZ_OFFSET(sessiontimezone),1,3))*3600 - rownum,col1,col2,col3 from table1
------解决方案--------------------
select (sysdate-TO_DATE('19700101','yyyymmdd'))*86400 - TO_NUMBER(SUBSTR(TZ_OFFSET(sessiontimezone),1,3))*3600 - rownum,col1,col2,col3 from table1