create table tablename(
id number PRIMARY KEY,
name varchar2(25) REFERENCES tablename2.column
)
alter table SOD_DET
add constraint PK_SOD_DET primary key (SOD_COMP, SOD_NBR, SOD_LINE)
using index
tablespace OLS_D
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 64K
next 1M
minextents 1
maxextents unlimited
);