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
  • 442,112
  • 142
  • 972
  • 1,088
4

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

MySQL LIKE IN()?

Community
  • 1
  • 1
Fosco
  • 38,138
  • 7
  • 87
  • 101
0

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

Mark Baker
  • 209,507
  • 32
  • 346
  • 385
0

No, but you could use REGEXP.

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