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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determine if a field contains a number

Status
Not open for further replies.

markusj

MIS
Jan 16, 2003
6
US
Hi, I am trying to retrieve information from a field where the field can contain both a number for one record and a string for another record. The field is set as a string in the database schema.

What I would like to do is retrieve only those fields which do not contain a number. In VB I would call the isNumeric() function to return true or false.

How can I do this in SQL?

eg..
SELECT user_name FROM users WHERE user_name [is not numeric]

Thanks in advance
MarkusJ
 

SELECT user_name FROM users
WHERE isnumeric(user_name) = 0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top