Query
Query
--------===========================================================------
-- Create table
create table SA_INNER_ORDER_DETAIL
(
INNER_ORDER_ID NUMBER(9) not null,
SEQ NUMBER(3) not null,
INNER_ORDER_DETAIL VARCHAR2(4000)
)
tablespace TAB_CC
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 64K
next 1M
minextents 1
maxextents unlimited
);
-- Create/Recreate primary, unique and foreign key constraints
alter table SA_INNER_ORDER_DETAIL
add constraint PK_SA_INNER_ORDER_DETAIL primary key (INNER_ORDER_ID, SEQ)
using index
tablespace TAB_CC
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 64K
next 1M
minextents 1
maxextents unlimited
);
alter table SA_INNER_ORDER_DETAIL
add constraint FK_SA_INNER_REFERENCE_SA_INNE2 foreign key (INNER_ORDER_ID)
references SA_INNER_ORDER (INNER_ORDER_ID);
----==================================================================------