CREATE TABLE #foo (
ident BIGINT IDENTITY (0, 1)
, someString VARCHAR (128) DEFAULT '')
INSERT #foo ( someString )
SELECT '4546546'
UNION
SELECT '456654.475'
UNION
SELECT 'afafsdf'
UNION
SELECT '78998'
UNION
SELECT '87979z'
SELECT ident
, someString
, PATINDEX ('%[^0-9]%', someString)
FROM #foo
WHERE PATINDEX ('%[^0-9]%', someString) != 0
No comments:
Post a Comment