redgar
Member
- Joined
- Feb 28, 2008
- Messages
- 13
- Programming Experience
- 3-5
I have a database that I am querying that contains text. In searching I encounter instances of words followed by punctuation like commas, colons periods and so forth. I don't want to use two %'s around my queries because it will include all sorts of other words (child search includes children).
I want to include my search words without having to write a long line of ORs to include the word and all forms of puntuation. Is there any kind of wildcarding I can do for this. I tried doing some brackets and underscores etc but my queries are really turning out pretty badly. I'd like to be able to totally control what is returned.
Even on my broad search where I am not looking for exact matches if I use something like WHERE Text LIKE '% ' + ? + '_ %' I end up getting words like wine or wind when looking up win. Can anyone point me in the right direction for both a loose match and exact match, especially where punctuation is concerned?
I want to include my search words without having to write a long line of ORs to include the word and all forms of puntuation. Is there any kind of wildcarding I can do for this. I tried doing some brackets and underscores etc but my queries are really turning out pretty badly. I'd like to be able to totally control what is returned.
Even on my broad search where I am not looking for exact matches if I use something like WHERE Text LIKE '% ' + ? + '_ %' I end up getting words like wine or wind when looking up win. Can anyone point me in the right direction for both a loose match and exact match, especially where punctuation is concerned?