Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Alter a char field
On 16 Mar, 14:25, "MattJ83" <mattjo..._at_hotmail.co.uk> wrote:
> ok..i have a feeling this is a simple procedure.
> Basically I have a CHAR field with the date in and I would like to
> turn this into a string of numbers.
>
> Eg:
> "28/Feb/2007:13:06:37" ---> "28022007"
>
> Im not sure if i need to put the date into a date field first before i
> can get this information...?
SQL> select to_char(to_date('28/Feb/2007:13:06:37','DD/Mon/ YYYY:HH24:MI:SS'), 'DDMMYYYY') from dual
TO_CHAR(
HTH -g Received on Fri Mar 16 2007 - 09:31:50 CDT