Visualizzazione dei risultati da 1 a 2 su 2

Discussione: [mysql] Match Again

  1. #1

    [mysql] Match Again

    Se faccio una query tipo:

    SELECT * FROM tabella WHERE MATCH(campo, campo2) AGAINST('-valore' IN BOOLEAN MODE)

    Non trova nulla, perchè?
    Non dovrebbe trovare tutto quello che non ha "valore"?
    Ciao!

  2. #2
    again significa "di nuovo" ....

    dal manuale:
    -

    A leading minus sign indicates that this word must not be present in any of the rows that are returned.

    Note: The - operator acts only to exclude rows that are otherwise matched by other search terms. Thus, a boolean-mode search that contains only terms preceded by - returns an empty result. It does not return “all rows except those containing any of the excluded terms.”

    Il silenzio è spesso la cosa migliore. Pensa ... è gratis.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.