Re: orace sql query
- From: "fitzjarrell@xxxxxxx" <fitzjarrell@xxxxxxx>
- Date: Fri, 22 Jun 2007 14:50:07 -0700
On Jun 22, 3:45 pm, DA Morgan <damor...@xxxxxxxxx> wrote:
EdStevens wrote:
On Jun 22, 12:15 pm, sathishkes...@xxxxxxxxx wrote:
i want to create table with primary key but with out index
How do you think Oracle enforces the PK?
Not with an index. Indexes have nothing to do with primary key
enforcement. Consider, for example, a deferred constraint which
is built with a non-unique index.
--
Daniel A. Morgan
University of Washington
damor...@xxxxxxxxxxxxxxxx (replace x with u to respond)
Puget Sound Oracle Users Groupwww.psoug.org
From the documentation:
"Oracle enforces all PRIMARY KEY constraints using indexes. In Figure
21-5, the primary key constraint created for the deptno column is
enforced by the implicit creation of:
A unique index on that column
A NOT NULL constraint for that column
Composite primary key constraints are limited to 32 columns, which is
the same limitation imposed on composite indexes. The name of the
index is the same as the name of the constraint. Also, you can specify
the storage options for the index by including the ENABLE clause in
the CREATE TABLE or ALTER TABLE statement used to create the
constraint. If a usable index exists when a primary key constraint is
created, then the primary key constraint uses that index rather than
implicitly creating a new one."
According to Oracle it does.
David Fitzjarrell
.
- Follow-Ups:
- Re: orace sql query
- From: hjr . pythian
- Re: orace sql query
- From: DA Morgan
- Re: orace sql query
- References:
- orace sql query
- From: sathishkesani
- Re: orace sql query
- From: EdStevens
- Re: orace sql query
- From: DA Morgan
- orace sql query
- Prev by Date: Re: brain teaser
- Next by Date: Re: free oracle data profiling/quality tool
- Previous by thread: Re: orace sql query
- Next by thread: Re: orace sql query
- Index(es):
Relevant Pages
|