You are here: Re: How do I select data from MySQL using a + or - qualifier ? « PHP SQL « IT news, forums, messages
Re: How do I select data from MySQL using a + or - qualifier ?

Posted by Da Dimmi de wit on 01/12/07 23:02

On Fri, 12 Jan 2007 15:15:39 -0000, "Paul Lautman"
<paul.lautman@btinternet.com> wrote:

>Da Dimmi de wit wrote:
>> I have a database table that I need to query specific keywords from.
>> I would like to do so using a + or -.
>>
>> -DDW
>
>Look at the FULLTEXT facilities
>

Ah yes, Boolean mode in FULL Text.

mysql> SELECT E.entryID,E.title,C.name
-> FROM blog_entries AS E, blog_categories AS C
-> WHERE E.categoryID=C.categoryID AND
-> MATCH (E.title,E.entry) AGAINST ('+vacation -washington'
IN BOOLEAN MODE) AND
-> E.categoryID=1;

http://www.onlamp.com/pub/a/onlamp/2003/06/26/fulltext.html

I believe this is what I was searching for.
Now I just need to confirm BOOLEAN works with words like 'the' and
'when' and doesn't drop them like MATCH does in FULLTEXT.


-Thanks.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация