Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: P a r t i a l k e y s
miguel wrote:
>
> Does anyone plese tell me if we can use partial keys on Oracle 7.1.6? For
> example if we can use the first two caracters from a VARCHAR column (NOT
> NULL) ?
I ran two queries with sql_trace turned on. First, select count(*)
where container_id like '0009103%'. The second, select count(*) where
container_id like '%9103%'
The first query used the appropriate index, using a range scan of that index. The second did a table scan. Received on Tue Apr 29 1997 - 00:00:00 CDT