--Tabelle anlegen create table TABELLENNAME ( feld1 number(12,2) not null default 1, feld2 varchar2(255), ...... ) tablespace xyz storage (initial 2M next 2M minextents 1 maxextents unlimited ); --Primary Key festlegen alter table TABELLENNAME add constraint PK_NAME primary key (FELDNAME) using index tablespace xyz_idx; --Index anlegen create index idx_name on tabellenname (FELDNAME1,FELDNAME2) tablespace xyz_idx; --Comments hinzufügen comment on column TABELLENNAME.FELDNAME is '1 ja 0 nein'; --Ref hinzufügen alter table TABELLENNAME add constraint R_NAME foreign key (FELDNAME) references REF_TABELLE (REF_TABELLENFELD);