Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: A substr question
On Fri, 15 May 1998 03:26:20 GMT, hughesguy_at_my-dejanews.com wrote:
>In article <6jdoh6$bdg5_at_hkpa05.polyu.edu.hk>,
>UPDATE TEST SET COL2 = to_number(SUBSTR(COL1,1,1));
This seems to be the generic solution posted so far. However, it will
only work if the first character of the value in COL1 is a number.
Otherwise, you will still be receiving an invalid number error.
Jonathan Ingram Received on Fri May 15 1998 - 12:59:07 CDT