Hi DevTeam,
would it be possible to generate the DDL of Tables completly without storage/tablespace-clause?
Instead of :
this output (with a checkbox near the view window?)
Very often i test code between different databases different tablespaces or i want just to post some ddl in blogs and always i have to put away the storage manually :-(
With kind Regards
Carl r.
would it be possible to generate the DDL of Tables completly without storage/tablespace-clause?
Instead of :
Code:
create table ACTIVITY
(
ID RAW(16) not null,
COMPANY_ID RAW(16) not null,
NEXT_ID RAW(16),
PREV_ID RAW(16)
)
tablespace USERS
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 64K
minextents 1
maxextents unlimited
);
-- Create/Recreate primary, unique and foreign key constraints
alter table ACTIVITY
add constraint ACTIVITY_PK primary key (ID)
using index
tablespace USERS
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 64K
minextents 1
maxextents unlimited
);
alter table ACTIVITY
add constraint ACTIVITY_NEXT_FK foreign key (NEXT_ID)
references ACTIVITY (ID);
alter table ACTIVITY
add constraint ACTIVITY_PREV_FK foreign key (PREV_ID)
references ACTIVITY (ID);
-- Create/Recreate indexes
create index ACTIVITY_NEXT_FK on ACTIVITY (NEXT_ID)
tablespace USERS
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 64K
minextents 1
maxextents unlimited
);
create index ACTIVITY_PREV_FK on ACTIVITY (PREV_ID)
tablespace USERS
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 64K
minextents 1
maxextents unlimited
);
Code:
create table ACTIVITY
(
ID RAW(16) not null,
COMPANY_ID RAW(16) not null,
NEXT_ID RAW(16),
PREV_ID RAW(16)
)
;
-- Create/Recreate primary, unique and foreign key constraints
alter table ACTIVITY
add constraint ACTIVITY_PK primary key (ID)
;
alter table ACTIVITY
add constraint ACTIVITY_NEXT_FK foreign key (NEXT_ID)
references ACTIVITY (ID);
alter table ACTIVITY
add constraint ACTIVITY_PREV_FK foreign key (PREV_ID)
references ACTIVITY (ID);
-- Create/Recreate indexes
create index ACTIVITY_NEXT_FK on ACTIVITY (NEXT_ID)
;
create index ACTIVITY_PREV_FK on ACTIVITY (PREV_ID)
;
With kind Regards
Carl r.