Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CREATE TABLE STATEMENT

Status
Not open for further replies.

vrudenko

Programmer
Feb 23, 2001
28
CA
Hi,

I read from Metalink forum this syntax of CREATE TABLE statement:

CREATE TABLE PR_DESC (
PR_DESC_ID NUMBER(10)
CONSTRAINT PR_DESC_PK PRIMARY KEY
USING INDEX
(CREATE INDEX PR_DESC_PK_IDX
ON PR_DESC (PR_DESC_ID)
TABLESPACE INDX
STORAGE ( INITIAL 128K NEXT 128K PCTINCREASE 0 )),
PR_NO CHAR(4)
CONSTRAINT PR_DESC_PR_NO_NN NOT NULL
CONSTRAINT PR_DESC_UQ UNIQUE
USING INDEX
(CREATE INDEX PR_DESC_UQ_IDX
ON PR_DESC (PR_NO)
TABLESPACE INDX
STORAGE ( INITIAL 128K NEXT 128K PCTINCREASE 0 )),
PR_D VARCHAR2(100)
)
TABLESPACE DATA
STORAGE (INITIAL 1024K NEXT 1024K PCTINCREASE 0 )
/

But, when I wanted to create the table I got the error:

ERROR at line 5:
ORA-00907: missing right parenthesis

Any suggestions?

Thank you

 
You may specify index name (full CREATE INDEX statement) in CREATE TABLE statement only on 9i.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top