Hi,
You can use regexp.
for e.g.,
Code
SELECT to_number(regexp_replace(hello123,[[:alpha:]],)) FROM dual;
Output:
--------------
123
Login to rate this answer.
Balapradeep
Answered On : Feb 14th, 2012
Code
SELECT * FROM table_name WHERE regexp_like(column_name,^[0-9]+$);

2 Users have rated as useful.
Login to rate this answer.
Code
SELECT * FROM table_name WHERE regexp_like(column_name,^[0-9]+$);
Login to rate this answer.
samarendra
Answered On : Apr 3rd, 2012
Code
SELECT column1 FROM TABLE WHERE column1 NOT LIKE %[^0-9]%
Login to rate this answer.
Query is missing quotes. The corrected query is..
Code
SELECT * FROM table_name WHERE regexp_like(column_name,^[0-9]+$);
Login to rate this answer.
Sushma S
Answered On : Apr 9th, 2012
Login to rate this answer.
Sudipto
Answered On : Apr 17th, 2012
Code
SELECT * FROM table_name WHERE regexp_like (column_name, ^[0 - 9] + $);
Login to rate this answer.
Nisa
Answered On : Apr 17th, 2012
Using regexp_replace function
Code
SELECT to_number(regexp_replace(abc123efg456kjhdf,[[:alpha:]]))
FROM dual;
Login to rate this answer.