MySQL Forums
Forum List  »  Full-Text Search

Re: full text query on lookup table
Posted by: Rick James
Date: August 07, 2010 12:09PM

FULLTEXT is not useful here.

To find books about cats or dogs...
SELECT b.title
   FROM books b
   JOIN types t  ON b.Category = t.Type
   WHERE t.Keyword IN ('Cat', 'Dog');

Hmmm... This is probably not what you are asking. And maybe the schema is not right.

Please rephrase your question, more along the non-db lines, like "find books about cats or dogs".

The problem is that you might have an Animal book that talks only about snakes. Your schema cannot distinguish this case; any query will find all the Animal books even when asking only for Cats and Dogs.

Options: ReplyQuote

Written By
August 05, 2010 01:46AM
Re: full text query on lookup table
August 07, 2010 12:09PM
August 11, 2010 01:52AM
August 11, 2010 01:56AM
August 12, 2010 07:46AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.