Tuesday, May 22, 2012

How to check Numeric value in Oracle

November 5, 2009 by · Leave a Comment 

Currently i could not find any suitable function for checking numeric value on some column. There are many workarounds to achieve this functionality, either cast the column value in Numeric and check, but this can create an exception if not properly coded. Another workaround for this problem is by using the combination of LENGTH and [...]

Validating string for numeric values in SQL Server

November 5, 2009 by · Leave a Comment 

What to do when you have a large string and you have to validate whether this string only contain digits or not. A straight thing that comes in our mind is to use a looping technique to traverse all the characters in the string and validate each character to be a digit. But how could [...]