Jump to content

LEFT JOIN Match AGAINST


The Little Guy

Recommended Posts

Got it.

 

 

SELECT n.id, n.headline, n.category, s.story,MATCH(n.headline) AGAINST ('$search' IN BOOLEAN MODE) AS score1,MATCH(s.story) AGAINST ('$search' IN BOOLEAN MODE) AS score2FROM news n LEFT JOIN news_story s ON(n.id = s.newsid) WHEREMATCH(n.headline, s.story) AGAINST ('$search' IN BOOLEAN MODE) AND($impl) ORDER BY score1 DESC, score2 DESC

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.