0
How to print only numeric value from one column
For example : column contains values R123, R456,.... And i want to print 123,456.... Using sql query
2 Answers
+ 1
Use this
PATINDEX('%[^0-9]%', column_name)
0
SELECT column FROM table WHERE column not like '%[^0-9]%' and column != ''