Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to tell if a string is valid integer

Status
Not open for further replies.

glendacom

MIS
Oct 23, 2002
36
US
Is there a function that will tell me if a string is a valid integer. It would work something like this:

somefunc('1234') would return TRUE
somefunc('12a4') would return FALSE
 
You probably want the ISNUMERIC function. Check out the Books OnLine, use the index and go to ISNUMERIC for a description and the syntax.

_SQLBill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top