Querying multiple words

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Cubicle Intern

    #1

    Querying multiple words

    Hi,

    My website's search function looks up entire phrases instead of
    individual words. For example, if I query "Google Groups," I would
    like my search to come up with everything in my database that has the
    words "Google" and "Groups," not just the phrase "Google Groups." I
    would want my search to bring back "Google-tastic Search" or "Group
    Compu-Google." Right now it only brings back "Google Groups #1,"
    "Google Group #2," etc.

    I'm at a loss at how to begin implementing this change. Any
    suggestions? I'm working with ASP files, Javascript and HTML. Thanks
    in advance for any help.

    tyv
  • =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=

    #2
    RE: Querying multiple words

    SELECT * FROM myTable where DescriptionColu mn LIKE '%google%' OR
    DescriptionColu mn LIKE '%groups%'

    -- Peter
    Site: http://www.eggheadcafe.com
    UnBlog: http://petesbloggerama.blogspot.com
    Short Urls & more: http://ittyurl.net


    "Cubicle Intern" wrote:
    Hi,
    >
    My website's search function looks up entire phrases instead of
    individual words. For example, if I query "Google Groups," I would
    like my search to come up with everything in my database that has the
    words "Google" and "Groups," not just the phrase "Google Groups." I
    would want my search to bring back "Google-tastic Search" or "Group
    Compu-Google." Right now it only brings back "Google Groups #1,"
    "Google Group #2," etc.
    >
    I'm at a loss at how to begin implementing this change. Any
    suggestions? I'm working with ASP files, Javascript and HTML. Thanks
    in advance for any help.
    >
    tyv
    >

    Comment

    Working...