Re: Convert faulty string to date
This is not an XML-related question, but a string function
You can split the elements of the date string by the ocurrences of "/" and concatenate the year, month and date virtual column.
SELECT
CONCAT(
'200', SUBSTRING_INDEX(datecolumn,'/',-1), '-',
SUBSTRING_INDEX(datecolumn,'/',1), '-',
SUBSTRING_INDEX(SUBSTRING_INDEX(datecolumn,'/',2),'/',-1)
)
FROM test
;
Edited 1 time(s). Last edit at 12/07/2008 05:59PM by Harald Groven.
Subject
Written By
Posted
November 19, 2008 11:46AM
Re: Convert faulty string to date
December 07, 2008 05:55PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.