R
Rob
I wrote a script that built the SQL to examine text fields using a LIKE
operator,
text LIKE '*searchtext*'
but for some reason or other I couldn't get it to work. I instead
decided to test for inclusion by using
InStr(1, text, searchtext) > 0
which works, but the code runs a whole lot slower than I'd like it to.
The question is how much less efficient is evaluating the InStr
function and then doing a comparison versus simply using a LIKE
operator (i.e. would it be worth it for me to spend the time to make
the latter work)?
operator,
text LIKE '*searchtext*'
but for some reason or other I couldn't get it to work. I instead
decided to test for inclusion by using
InStr(1, text, searchtext) > 0
which works, but the code runs a whole lot slower than I'd like it to.
The question is how much less efficient is evaluating the InStr
function and then doing a comparison versus simply using a LIKE
operator (i.e. would it be worth it for me to spend the time to make
the latter work)?