Try
 TO_NUMBER(circ_num)
and exception INVALID_NUMBER

Jan Pruner

> -----Original Message-----
> From: Glenn Travis [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 18, 2001 6:17 PM
> To: Multiple recipients of list ORACLE-L
> Subject: Check for number only
> 
> 
> I have a table with a column of varchar2(50) datatype.  We 
> are building a
> new table and the values in this column should all be 
> numbers.  I need to
> query the table to find all rows which have a value in this 
> column which is
> not a valid number.
> 
> Table:
> circuit (circ_id (primary_key) number, circ_num varchar2(50))
> 
> Example:  find all values in circ_num which are not numbers.
> how do I do something like 'select circ_id, circ_num from 
> circuit where
> circ_num not valid to_number(circ_num)'
> 
> Is there a function to check this?
> 
> 
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> -- 
> Author: Glenn Travis
>   INET: [EMAIL PROTECTED]
> 
> Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
> San Diego, California        -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from).  You may
> also send the HELP command for other information (like subscribing).
> 
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Pruner Jan
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to