View Single Post
Old 01-27-2013, 02:25 AM   PM User | #1
mikemacx
New Coder

 
Join Date: Feb 2009
Location: Los Angeles
Posts: 40
Thanks: 2
Thanked 1 Time in 1 Post
mikemacx is an unknown quantity at this point
MYSQL LIKE and more than one beginning letter

Hi all......

Can't seem to find the answer anywhere, so I thought you might know. When using LIKE, how do I search for records where the column values begin with MULTIPLE letters, such as A, R, and T.

I know in SQL it's SELECT * from products_tbl WHERE prod_desc LIKE '[cpa]%'

But I don't know how to do this in MYSQL....the above query returns an empty set when I know the letters are there.

Thanks!
mikemacx is offline   Reply With Quote