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

Home -> Community -> Usenet -> c.d.o.tools -> is number

is number

From: <eastking_at_my-deja.com>
Date: Thu, 14 Sep 2000 06:10:25 GMT
Message-ID: <8ppq47$nrm$1@nnrp1.deja.com>

hello , everyone here

I have a table like following:

Ex_table

id        value
01        aaa
hh        AAA
02        bbb
ab        ccc


I'd like to insert a row whose id is max(to_number(id))+1 into this table . In this case , the id should be 3. But to_number('ab') will cause a error.How can I achieve it by only a SQL command.

Thanks in advance.

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Thu Sep 14 2000 - 01:10:25 CDT

Original text of this message

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