Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 embedded MATCH request

Author  Topic 

titiplanti
Starting Member

2 Posts

Posted - 2010-09-21 : 09:34:27
Hi !

Topics of my forum link to a page of my annuary thanks to a MATCH request that work fine :
SELECT annuary_cat_id, annuary_cat_name
FROM annuary_categories
WHERE MATCH (annuary_cat_name,annuary_cat_text) AGAINST ("$forum_topic_title")


Inversely, I want that page of the annuary can list the forum topics which point towards that page of the annuary. But I have problems to find the good request. I tried :
SELECT topic_id, topic_title, annuary_cat_id, annuary_cat_name, annuary_cat_texte
FROM forum_topics, annuary_categories
WHERE annuary_cat_id = "105"
AND topic_id=(SELECT topic_id FROM forum_topics WHERE MATCH (annuary_cat_name,annuary_cat_texte) AGAINST (topic_title) LIMIT 0,1)


phpmyadmin (MySQL version 5.0.51a) says : "Incorrect arguments to AGAINST"

How can I do ?

jimf
Master Smack Fu Yak Hacker

2875 Posts

Posted - 2010-09-21 : 10:15:26
This is a Microsoft SQL Server forum, you may be better servd trying a different forum
www.dbforums.com

Jim

Everyday I learn something that somebody else already knew
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2010-09-21 : 10:16:02
quote:
Originally posted by titiplanti
How can I do ?



Well..this is SQL Server

You can try a mySQL site though

http://www.dbforums.com/mysql/



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx





Go to Top of Page

titiplanti
Starting Member

2 Posts

Posted - 2010-09-22 : 02:16:29
thanks !
Go to Top of Page
   

- Advertisement -