sql server 2005 - how can i write the procedure for search using logical operator? -
In my application I have to write the process for searching so that the user can use any of the words like 'Ar Rahman and Slumdog or Danbole' Give the combination, like how I can write this process. Using logical operators.
In the words of the office assistant words: "It seems that you make a search engine! ... "
If you are trying to create some sort of search then you can use it well or maybe it is ported in many languages.
If you want to do this in SQL then you will need a dynamic SQL, and my strong recommendation will be to dynamically generate SQL on the client, for a stored procedure Not inside - and when I say dynamically SQL is generated, I literally generate something like this:
WHERE (name = 'Rahman' and some fields = 'slumdog') or name = 'Danbole'
Comments
Post a Comment