MySQL Forums
Forum List  »  Full-Text Search

Re: Efficiency of my select statement
Posted by: Rick James
Date: April 28, 2010 07:19PM

Neither will be efficient. And they are different.

Add some parentheses. a OR b OR c AND d is the same as a OR b OR (c AND d), which does not feel like what you want.

UNION is more like OR than AND.

ALTER TABLE table1
ADD FULLTEXT(Program, Title, Producers, Key_Words, Description);

Then
... WHERE MATCH(Program, Title, Producers, Key_Words, Description)
AGAINST ('boxes')
without the ORs.

Options: ReplyQuote


Subject
Views
Written By
Posted
4815
April 27, 2010 03:19PM
Re: Efficiency of my select statement
2281
April 28, 2010 07:19PM
1941
April 29, 2010 04:14PM


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.