all groups > sql server mseq > april 2004 >
You're in the

sql server mseq

group:

determine if value in field is number


determine if value in field is number Matt Tapia
4/23/2004 10:35:29 AM
sql server mseq:
I have a varchar field in a table that could contain values such as 123,
345, ABC, or CDF

I want to do a select statement on the table to return records where this
field could be number (123, 345) and exclude those that are not (ABC, CDF).
Is there an IsNum function or something like that?

Re: determine if value in field is number Vishal Parkar
4/23/2004 11:33:55 PM
hi matt,

make use of isnumeric function, which returns 1 for valid numeric value.
ex:
select *
from
<table>
where isnumeric(col) = 1

--
Vishal Parkar
vgparkar@yahoo.co.in


AddThis Social Bookmark Button