Friday, 10 September 2010

Oracle: Inforcing Date Format ...

Sometime we can have a problem with the date format in Oracle DATE column. In this case i was having a problem that Java was not able to read the DATE properly.

Below is the scripts that inforces the correct format in the DB.

UPDATE TABLE_NAME
set DATE_Column = TO_DATE (
DATE_Column, 'DD/MM/RRRR' )

RRRR: Here enforces the Year to be four digit.

No comments:

Post a Comment

Executive Summary: Anthropic's Claude Mythos Model

  What Happened Anthropic announced  Claude Mythos Preview , a new AI model it describes as its most capable ever — and so powerful in cyber...