In SQL Server 2005, 2008, 2012 if you wish to find all the rows with a particular field having Numeric values only then give a simple check as below :
Reference: Govind Badkur(http://sqlserver20.blogspot.com)
SELECT * FROM CustomerDetails (NOLOCK) WHERE MobileNo NOT LIKE '%[^0-9]%'
Reference: Govind Badkur(http://sqlserver20.blogspot.com)
No comments:
Post a Comment