“Show all except” in MySQL Boolean Full-Text Searches

后端 未结 1 676
独厮守ぢ
独厮守ぢ 2021-01-25 09:43

With MySQL Boolean Full-Text Searches...

http://dev.mysql.com/doc/refman/5.1/en/fulltext-boolean.html

A leading minus sign indicates that th

相关标签:
1条回答
  • 2021-01-25 10:36

    No, but it would be equivalent to simply NOT the condition:

    SELECT *
    FROM foo
    WHERE NOT MATCH (bar) AGAINST ('blah blah2')
    

    of course such a query can't possibly actually use the fulltext index for quick lookup.

    0 讨论(0)
提交回复
热议问题