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!

how to change the time of Datetime field

631274May 15 2008 — edited May 16 2008
How can I update only the time portion of a datetime field in my database?
Example:

datetime field = '30-Aug-2006 12:10:00 PM' to '30-Aug-2006 12:15:00 PM'

I can select the entrys with the command
select * from terminliste where to_char(beginn,'mi') = 10;

but i dont know how to change the entrys
update terminliste set to_char(beginn,'mi') = 15 where to_char(beginn,'mi') = 10;

dosnt work.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 13 2008
Added on May 15 2008
6 comments
7,476 views