Newsgroups: comp.databases.oracle.server
From: "hpuxrac" <johnbhur...@sbcglobal.net>
Date: 7 Dec 2006 05:52:53 -0800
Local: Thurs, Dec 7 2006 8:52 am
Subject: Re: wildcard search and full tablescans
wagen...@yahoo.com wrote: If you CANNOT begin the search with some leading characters ( not the > Oracle10g 10.2.0.1 > select * from <table_name> where <column_name> like '%abc%'; > does not use the index and does a full tablescan (guess this is the > Any suggestions as to how to use the index (index hint didn't help), IF > thanks percent sign ) ... ie where some_col like 'abc%' ... then normally I would expect to the optimizer to pick either a full table scan or some kind of index scan. You might want to do a 10053 trace and some analysis of where the You can put in a hint like this select /*+ INDEX(table_or_view_name Eiher a full table scan or a full index scan ( of some type ) produces For full searching within a column there are options including the TEXT Oracle will work nicely with regular character indexes IF you put a You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||