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 -> primary keys and tablespaces

primary keys and tablespaces

From: <csykora_at_my-deja.com>
Date: Sat, 27 Jan 2001 18:21:38 GMT
Message-ID: <94v3jd$4a2$1@nnrp1.deja.com>

I am creating a table without any contraints in the create table sql. I then want to execute an alter table statement to add the primary key...well the problem is in dictating what tablespace the primary key contraint gets created in. I need to do something like this:

create table foo (test char(2), oid number(38));

then execute something like:

alter table foo add primary key(oid) tablespace mytablespace;

because the primary key needs to be created in a tablespace other than the default for a
particular schema...but i can't get the alter table command to point to the correct
tablespace...any ideas on the syntax for the alter table statement?

Thanks in advance,

Chad

Sent via Deja.com
http://www.deja.com/ Received on Sat Jan 27 2001 - 12:21:38 CST

Original text of this message

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