INDEX possible for reverse wildcards?
From: Robert Brown <robertbrown1971_at_yahoo.com>
Date: 4 Jun 2004 08:59:32 -0700
Message-ID: <240a4d09.0406040759.5e47033f_at_posting.google.com>
If I use _reverse_ wildcard search will it always result in a table scan? Is it possible to get the DB (Oracle or SQL server) to use indexes when doing reverse wildcard match?
Date: 4 Jun 2004 08:59:32 -0700
Message-ID: <240a4d09.0406040759.5e47033f_at_posting.google.com>
If I use _reverse_ wildcard search will it always result in a table scan? Is it possible to get the DB (Oracle or SQL server) to use indexes when doing reverse wildcard match?
let's say I have:
select id from email_address where 'www.superdupershoes.com' like email;
this returns 2,3
But the query always results in a table scan even if I add an index to email. What kind of index can I employ in this situation?
Thanks!
- Robert