Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: A substr question

Re: A substr question

From: Keith Jamieson <pdkj02_at_email.mot.com>
Date: Thu, 14 May 1998 07:42:32 +0100
Message-ID: <355A9257.B84C5DE2@email.mot.com>


Use the to_number function to convert the result of your substr back to a character

Elton Chan wrote:

> Hi all,
>
> anybody can help, I come across a problem while using the following sql
> that for data extraction.
>
> UPDATE TEST SET COL2 = (SUBSTR(COL1,1,1));
> *
> ERROR at line 1:
> ORA-01722: invalid number
>
> while COL2 is number(1) and COL1 is Char(4) like 2X.9 or 6K.0 that I want to
> extract the first number i.e. 2 and 6 from COL1 to COL2.
>
> Anybody help???
>
> Thanks,
> Elton
Received on Thu May 14 1998 - 01:42:32 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US