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 -> Re: primary key index on separate tablespace not possible?

Re: primary key index on separate tablespace not possible?

From: Brian Peasland <peasland_at_edcmail.cr.usgs.gov>
Date: 2000/06/08
Message-ID: <39400243.479FC00E@edcmail.cr.usgs.gov>#1/1

> I personally prefer to create the index and the constraint separately,
> because I want the index and the constraint to have same name (for
> instance TABLE01_PK)
>
> I don't like index names (like SYS_C00720 etc..) Oracle gives
> to indexes it creates implicitly for constraints.
>
> regards. Kari
>
> (Mr) Kari Pannila
> Oracle DBA (OCP)

You can name the index constraint at the same time you create the table command. You are not limited to either creating the indexes seperately or putting up with system generated constraint names. For example:

CREATE TABLE test (

   a NUMBER CONSTRAINT test_pk PRIMARY KEY,    b NUMBER);

HTH,
Brian

-- 
========================================
Brian Peasland
Raytheons Systems at
  USGS EROS Data Center
These opinions are my own and do not
necessarily reflect the opinions of my 
company!
========================================
Received on Thu Jun 08 2000 - 00:00:00 CDT

Original text of this message

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