hi.
it is very easy, actually... you make a 'SELECT ... WHERE column LIKE "%string%"' to match all rows which column 'column' has somwthing with "string" in it... of course, this example is directed to be used with strings... but your needs may be different...
as said before, you should check the mysql documentation:
http://www.mysql.com/documentation/mysql/bychapter/manual_Tutorial.html#Pattern_matching
that should do the trick.
[]