Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7432771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:30:40+00:00 2026-05-29T09:30:40+00:00

I have a column in an Oracle DB table that is of type TIMESTAMP(6)

  • 0

I have a column in an Oracle DB table that is of type TIMESTAMP(6) WITH TIME ZONE. There are data rows with data from different timezones, some UTC, some in other timezone offsets.

Is there a way I can query the Oracle table so that the results always come back as UTC, with the appropriate time shifting being done? Is there something that can be done on the query itself, or perhaps altering the session somehow? I’ve tried altering the session timezone to Utc, but this seems to only impact the CURRENT_TIMESTAMP value.

ALTER SESSION SET TIME_ZONE = 'Utc'

For example, if a value was stored as:

21-JAN-10 03.28.38.635000000 PM -05:00

the query would come back as

21-JAN-10 08.28.38.635000000 PM Utc

Example table definition

CREATE TABLE "MyDb"."Books"
  (
    "GUID" RAW(32) DEFAULT SYS_GUID(),
     "DATE_CREATED" TIMESTAMP (6) WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T09:30:41+00:00Added an answer on May 29, 2026 at 9:30 am

    You should be able to use the AT TIME ZONE syntax

    SELECT column_name at time zone 'UTC'
      FROM your_table
    

    i.e.

    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
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an oracle table with a column from type SYS.XMLTYPE and a storage
In Oracle, I have a table with a column of data type NUMBER. I
In Oracle db we have a table with varchar2 type of column (for example
I have an Oracle data table fetching columns that be null. So I figure
I have a table with a DATE column with time (as usual in Oracle
I have an Oracle table and a column ( col1 ) has type varchar2(12
I have a rather mundane Oracle table with seven rows. Each row has different
I have a oracle table A which contains a column A.a which used to
I have a table in Oracle where one of the column contains UserIds which
we have a table in an Oracle Database which contains a column with the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.