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

Searching for data that has an int 1

Status
Not open for further replies.

mbcmike

Programmer
Sep 9, 2005
34
US
I have a table, where I only want to select the sets of data that contain an integer. I thought about using CONTAIN, but that wouldn't work because it is for data with characters. Also, I don't want to search for specific integers, just if the data has any int in it at all.

For example:
(a) Height: 67
(b) Height

Only (a) would be selected here because it contains an int
 
select * from tbl
where column like '%[0-9]%'

pattern searching in books online.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top