-
i know order by will use sort_area.
but what if i have a index on that column?
create table test(a int,b int);
insert to test some values.
select * from test where a>10;
does this one use sort_area?
guru is on the way!!!!
-
Where is the ORDER BY clause?
-amar
-
if you have an index on a, you'll issue a RANGE SCAN, but no data will be sorted since, as amar said, you never specify that you want something to be ordered ...
-
sorry. it should be
select * from test where a>10 order by a ;
guru is on the way!!!!
-
Most likely not, but it depends on whether or not the index is used.
Check the plan for the statement. If there is no SORT step, then sort_area will not be used.
- Chris
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|