Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> partitioning question - anybody know?

partitioning question - anybody know?

From: <kal121_at_yahoo.com>
Date: Fri, 17 Dec 1999 21:28:43 GMT
Message-ID: <83e9u5$c1r$1@nnrp1.deja.com>


In order for a partition to be accessed by a SQL query, does the query have to reference the partition key directly, or does it not matter?

For example, if I define my_table as:

id number
name varchar2(40)

and I partition on id, would the following querys *both* access an individual partition, or only the first one?

SELECT * from my_table
WHERE id = 1;

SELECT * from my_table
WHERE name = 'Joe';
or would this second query access *all* partitions, because I am not referencing the partition key directly?

I wouldn't think it would matter which columns are referenced in the WHERE clause, but I remember reading somewhere that it does...

Thanks

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Fri Dec 17 1999 - 15:28:43 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US