sql >> Base de Datos >  >> RDS >> Oracle

Consulta de Oracle TIMESTAMP CON TIMEZONE

Deberías poder usar AT TIME ZONE sintaxis

SELECT column_name at time zone 'UTC'
  FROM your_table

es decir,

SQL> select * from foo;

COL1
---------------------------------------------------------------------------
09-FEB-12 01.48.40.072000 PM -05:00
09-FEB-12 10.49.26.613000 AM US/PACIFIC

SQL> select col1 at time zone 'UTC'
  2    from foo;

COL1ATTIMEZONE'UTC'
---------------------------------------------------------------------------
09-FEB-12 06.48.40.072000 PM UTC
09-FEB-12 06.49.26.613000 PM UTC