Title: RE: Check for all numeric in a column

select *
  from your_table
 where replace(translate(your_column_name,'.1234567890','***********'),'*') is not null
/

Raj
______________________________________________________
Rajendra Jamadagni              MIS, ESPN Inc.
Rajendra dot Jamadagni at ESPN dot com
Any opinion expressed here is personal and doesn't reflect that of ESPN Inc.
QOTD: Any clod can have facts, but having an opinion is an art!
-----Original Message-----
From: Koivu, Lisa [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 11:46 AM
To: Multiple recipients of list ORACLE-L
Subject: RE: Check for all numeric in a column


Hi Ron -

in pl/sql, try and convert it with to_number and catch the error if it won't convert.

Lisa Koivu
Oracle Database Administrator
Fairfield Resorts, Inc.
5259 Coconut Creek Parkway
Ft. Lauderdale, FL, USA  33063



-----Original Message-----
From: Smith, Ron L. [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 11:25 AM
To: Multiple recipients of list ORACLE-L
Subject: Check for all numeric in a column


What is the easiest / best way to check for a valid numeric value in a column?

R. Smith

If you are not the intended recipient of this e-mail message, any use, distribution or copying of the message is prohibited. Please let me know immediately by return e-mail if you have received this message by mistake, then delete the e-mail message. Thank you.

*********************************************************************This e-mail 
message is confidential, intended only for the named recipient(s) above and may 
contain information that is privileged, attorney work product or exempt from 
disclosure under applicable law. If you have received this message in error, or are 
not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 
and delete this e-mail message from your computer, Thank 
you.*********************************************************************1


Reply via email to