Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: how to specify index tablespace in table create
The method you are trying to use is for unique constraints, but the
constraint you have specified is a not null constraint, so the 'using
index tablespace clause' is not valid.
If you just wish to create a non-unique index on a specific column within
a table this cannot be done as part of the create table command and must
be done using create index ...
Hope this helps,
Rob
i'm trying to specify the index tablespace in the create table statement
so that
i can separate my tables and indexes onto different disks. the way i
read the manual,
this should work:
CREATE TABLE printer(
internal varchar2(8) CONSTRAINT printer_internal_nn NOT NULL USING INDEX TABLESPACE indexes, printer_name varchar2(16) CONSTRAINT printer_printer_name_nn NOT NULL USING INDEX TABLESPACE indexes, description varchar2(24) ) TABLESPACE data;
but i get the error:
internal varchar2(8) CONSTRAINT printer_internal_nn NOT NULL USING INDEX TABLESPACE indexes,
* ERROR at line 2: ORA-00907: missing right parenthesis
can anyone help?
-- Evert Vandeworp Network Analyst vandeworp.1_at_nd.eduReceived on Mon Apr 07 1997 - 00:00:00 CDT