Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

systimestamp to timestamp(6)

667651Nov 6 2008 — edited Nov 6 2008
Hi



I apologize if this has been answered before but I'm quite new to PL/SQL and I have come to a small problem.

We are using Timestamp(6) for our date columns and when performing updates on these via Update statments I get a warning when I compile. I understand why as I am updating a timestamp column with a systimestamp that contains timezone information. Is there a way of updating timestamp columns with the systimestamp value without having compile warnings?

I have tried using cast(systimestamp as timestamp(6)) in the update statement to no avail, the only way around this I have found is to place the systimestamp into a timestamp type variable then use that in an update statement, I'm not sure this is the right way to do thins hence the question.

Thank you Vicky

Edited by: user10090654 on 06-Nov-2008 03:15
This post has been answered by Solomon Yakobson on Nov 6 2008
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 4 2008
Added on Nov 6 2008
11 comments
5,254 views