Monday, April 30, 2012

How to use "Like" and "In" together in MySQL ?

Simple and very useful:
SELECT * FROM tablename WHERE column LIKE 'M510%' OR column LIKE 'M615%' OR column LIKE 'M515%' OR column LIKE 'M612%';

No comments:

Post a Comment