Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to select only numbers from a varchar column???

3619Oct 9 2001
I have a column that is varchar2(10). It is a mix of numeric
and alphanumeric values.

Col1
-----
1
F
10
RAC
PROMO
20
30

I want to only select rows that have a numeric value

select col1
from mytable
where col1 is numeric;

col1
---
1
10
20
30

Any Ideas??
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 12 2002
Added on Oct 9 2001
15 comments
1,648 views