May 9, 2012 at 9:38 am
Hi,
I'm aware that using a wildcard on both sides of a search criteria will stop the index being used, because of the first %:
e.g. Select * from person where surname = %JONES%.
Is there any alternative to this (I cant just use one side). ?
Thanks.
May 9, 2012 at 9:41 am
May 9, 2012 at 9:46 am
ggjjbb1983 (5/9/2012)
Hi,I'm aware that using a wildcard on both sides of a search criteria will stop the index being used, because of the first %:
e.g. Select * from person where surname = %JONES%.
Is there any alternative to this (I cant just use one side). ?
Thanks.
BTW. Your select statement will use index, if you have one on surname column!
Wildcard only works with LIKE...
May 9, 2012 at 9:49 am
So, there is no option other than Full Text?
May 9, 2012 at 9:57 am
Actually, there are!
You can use other technologies for text searches eg. Lucene for example.
It's very hard to suggest anything particular without knowing your system architecture details, requirements and your flexibility in options.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply