TRIM [message #198897] |
Thu, 19 October 2006 01:16 |
anandhi
Messages: 31 Registered: April 2006 Location: Chennai
|
Member |
|
|
Hi
I have a column with values 1.234, 0.234, -0.456.
what i have to do is i have use the TRIM function to make the values in the column like 1.234, .234, -.456 (ignoring 0 in front of the decimal point)
Please help with the Query
thanks
anandhi
|
|
|
|
Re: TRIM [message #204756 is a reply to message #198897] |
Tue, 21 November 2006 23:57 |
pravin3032
Messages: 51 Registered: November 2006 Location: eARTH
|
Member |
|
|
i guess the column have varchar2 format.
if so use query similar like this one ..
select ltrim(col_name, '0') from test_tab ;
|
|
|