How can you retrieve the numeric values from varchar2 type column?

Hi Friends, One table is there. It is having varchar2 type column and this column having both numeric and alphanumeric values but I want to retrieve only numeric related values from that table. If it is possible then say the answer plz... I will wait for ur tremendous answer...

Questions by Balapradeep Reddy   answers by Balapradeep Reddy

Showing Answers 1 - 10 of 10 Answers

samarendra

  • Apr 3rd, 2012
 

Code
  1.  

  Was this answer useful?  Yes

Sushma S

  • Apr 9th, 2012
 

Code
  1.  

  Was this answer useful?  Yes

Sudipto

  • Apr 17th, 2012
 

Code
  1.  

  Was this answer useful?  Yes

Nisa

  • Apr 17th, 2012
 

Using regexp_replace function

Code
  1.  

  Was this answer useful?  Yes

Atish

  • Sep 13th, 2015
 

Code
  1.  
Above query will give numeric values only. Matching is done on the basis of ASCII characters. So, in case of alphanumeric values, both upper and lower ASCII values will be different while in case of numeric values, it will match.

  Was this answer useful?  Yes

Sayantan

  • Jun 1st, 2017
 

Select length(trim(translate(string, +-.0123456789,) from table; if the value is null then its numeric

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions