oracle - Timestamp to timestamp with timezone -
i have compare value in column has datatype timestamp of column has timestamp timezone datatype. please tell me how can convert former datatype timestamp timezone. have query :
select * table1 col1>= (select col2 table 2)
where col1 timestamp , col2 timestamp tz
the sample value col2 : 15-jun-12 05.46.29.600102000 pm -07:00
you can use cast(col1 timestamp time zone)
oracle takes current user session time zone sessiontimezone
account conversion. comparison done on utc values.
if specify time zone can from_tz, example from_tz(col1, 'europe/zurich')
Comments
Post a Comment