Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> LIKE performance
I have a table with about 30000 rows, one column is a varchar2(90). I'm
doing a LIKE 'XXX%' query and its not using an index.
I tried querying with substr(col, 1, 10) = 'XXXXXXXXXX' with an index on substr(col, 1, 10). It doesn't use the index, even with a hint.
Whats the best way to get good performance out of this type of query.
TIA LH Received on Thu Feb 24 2005 - 17:25:28 CST