MySQL Forums
Forum List  »  Newbie

Re: Fulltext search across two tables
Posted by: Oscar Preis
Date: May 18, 2005 02:09PM

Hi Felix,

I added the suggesstion but know I don't get any rows back although there is a user last name and company name that should match.
Here is the sql

SELECT a.fname, a.lname, a.phone, b.comp_name
FROM users as a, accounts as b
INNER JOIN accounts ON a.company_id = accounts.resource_id
WHERE MATCH (a.fname, a.lname) AGAINST ('john' IN BOOLEAN MODE)
AND MATCH(b.comp_name) AGAINST ('john' IN BOOLEAN MODE)

Options: ReplyQuote


Subject
Written By
Posted
Re: Fulltext search across two tables
May 18, 2005 02:09PM


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.