CONTAINS statement

  • I am trying to build a search form so a user can input their search term.  How do I handle the contains statement?  do I 1) - add a contains statements for each word or 2 ) - just add all words into the one contains statement?

    1 - CONTAINS (p.*, '"lighting"') AND CONTAINS (p.*, '"futures"')

    2 - CONTAINS (contents, '"lighting and futures"')  

     

  • AFAIK, the correct syntax is:

    CONTAINS (contents, '"lighting" AND "futures"')

    Razvan

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply