Skip to Main Content

Oracle Database Discussions

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!

Is the to_Date correct?

ANNECApr 21 2023

Is this a valid statement on the part of to_Date?

update mytable
set transaction_date=TO_DATE('07-APR-23 00:00:00', 'dd/mon/yy hh24:mi:ss')
,processid=2836598
where school_year=2023

I see the result looks like ‘07-APR-23’ if I do a select transaction_date from mytable after the update,

Or it has to be:

set transaction_date=TO_DATE('07-APR-23 00:00:00', 'dd-mon-yy hh24:mi:ss')

This post has been answered by mathguy on Apr 22 2023
Jump to Answer
Comments
Post Details
Added on Apr 21 2023
3 comments
116 views