Taken from the article, the easiest test is to use a regular expression:
SELECT * FROM mytable WHERE mytable.mycolumn NOT LIKE '%[^0-9]%'
There is also a useful function he has written that could prove to be handy.
Thanks Jeff. Think I'd better re-trace some steps to make sure scripts using ISNUMERIC are a bit tighter!
No comments:
Post a Comment