I've got a column of varchar type, it contains dates in the format of 8-Jun-12 and 18-Jun-12
I have an empty column of date type
I'd like to fill up my column with the dates as actual dates. I was hoping to get away with something like:
SET formatted_date=to_date(mydatecol, ('[0-9]{1,2}-[a-zA-Z]{3}-[0-9]{2}'));
But my resulting column is null.