1

Possible Duplicate:
Is there a combination of “LIKE” and “IN” in SQL?

Is there LIKE IN in mysql?

Community
  • 1
  • 1
  • I asked this my self some time ago: http://stackoverflow.com/questions/3014940/is-there-a-combination-of-like-and-in-in-sql – selfawaresoup Jul 09 '10 at 20:06
  • @Techpriester: THANK YOU! I was sure I'd answered that recently, couldn't find the question... I marked this as a duplicate because MySQL has native Full Text Search functionality, and there is no `LIKE IN` in SQL at all. – OMG Ponies Jul 09 '10 at 23:06

4 Answers4

4

No.

But there is fulltext search. Maybe that goes into the right direction?

mysql> SELECT id, body   
    -> FROM articles WHERE MATCH (title,body) AGAINST
    -> ('Keyword1 Keyword2 Keyword3');
Pekka
  • 431,103
  • 135
  • 960
  • 1,075
4

Per this prior stackoverflow question, you might have better luck with a REGEXP query:

MySQL LIKE IN()?

Community
  • 1
  • 1
Fosco
  • 37,365
  • 6
  • 84
  • 100
0

No, but you may be able to use RLIKE depending on your version of MySQL

Mark Baker
  • 205,174
  • 31
  • 336
  • 380
0

No, but you could use REGEXP.

...WHERE field REGEXP 'abc|xyz'
TerryMatula
  • 1,254
  • 2
  • 14
  • 29