We can easily check an input is valid number or not in SQL Server.
ISNUMERIC function returns 1 or 0 if expression is valid number
it returns 1 otherwise 0.
Example:
Here expression is valid number so output is coming 1.
Now we are passing number with blank space it means it is not a valid number so output
output should be 0.
That’s It
Enjoy Learning.
September 1, 2011
Check valid number in SQL Server
Subscribe to:
Post Comments (Atom)
The Tech Pursuit
Keep asking better questions.
© Shatrughna Kumar. The Tech Pursuit.
Views expressed here are personal and do not represent any employer.
No comments:
Post a Comment