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!

TSQL wildcard

Status
Not open for further replies.

yetanotherjo

Technical User
Oct 5, 2003
123
AU
I feel really daft having to ask this, but how do you search using TSQL for numeric values with a wildcard eg. value of Q(number/s) as opposed to Q(char/s)(num/s)?
 
Code:
SELECT field
FROM table
WHERE field LIKE 'Q[0-9]%'

will pick up anything starting with Q0 to Q9.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top