Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to correct time component in date field

Status
Not open for further replies.

blom0344

Technical User
Mar 20, 2002
3,441
NL
How can I update the time component in a date-field?
Suppose I want to change '24-02-06 9:47:03' to '24-02-06 5:00:00' with an SQL statement?

Thanks

Ties Blom

 

Try:
Code:
Update MyTable
   Set Date_Field= TRUNC(Date_Field)+5/24;
[3eyes]

----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top