Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: SQL Server
Expertise: Beginner
Oct 11, 1999

Verifying Whether a String Contains a Number

Question:
Is there a function that gives me a simple way to know whether a string contains a number or not?

I've already done something with ASCII values, but this doesn't seem to be efficient.

Answer:
Actually the ascii() function is quite fast and that is the way to tell whether a character is alphabetical or numeric.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date