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

Selecting where first char is a number 1

Status
Not open for further replies.

DeepBlerg

Technical User
Jan 13, 2001
224
AU
Hey,

How do I select * from a table where I want a field who's value's first character is a number from 0 to 9?

thanks.
 
SELECT *
FROM yourtable
WHERE afield REGEXP "^[0-9]";
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top