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

Azure OpenAI Architecture Patterns & Deployment Patterns

Sharing some useful links that will help customers architect Azure OpenAI solution using the best practices: (1) Azure OpenAI Landing Zone r...