39 lines
1.3 KiB
SQL
39 lines
1.3 KiB
SQL
{ TABLE "informix".cotb00014 row size = 130 number of columns = 22 index size = 112 }
|
|
create table "informix".cotb00014
|
|
(
|
|
num_oc serial not null,
|
|
tipo char(2),
|
|
fech_oc date,
|
|
num_pr char(10),
|
|
cod_sp smallint,
|
|
cod_sp_sec smallint,
|
|
term_sp smallint,
|
|
via char(2),
|
|
enviada char(1),
|
|
fech_enviada date,
|
|
pago char(1),
|
|
fech_pago date,
|
|
cierre char(1),
|
|
cod_pt char(4),
|
|
c_flete decimal(12,2),
|
|
otros_g decimal(12,2),
|
|
detalle char(40),
|
|
status_t char(1),
|
|
us_crea char(9),
|
|
fech_crea datetime year to minute,
|
|
us_mod char(9),
|
|
fech_mod datetime year to minute
|
|
);
|
|
revoke all on "informix".cotb00014 from "public";
|
|
|
|
create index "informix".ix250_3 on "informix".cotb00014 (fech_oc);
|
|
create index "informix".clave on "informix".cotb00014 (num_oc,tipo);
|
|
create cluster index "informix".cotb14_1 on "informix".cotb00014 (fech_oc,status_t,num_oc,tipo,cod_sp,cod_sp_sec);
|
|
create index "informix".suplidor on "informix".cotb00014 (cod_sp,cod_sp_sec);
|
|
create index "informix".tipo_sp on "informix".cotb00014 (tipo,cod_sp,cod_sp_sec);
|
|
create unique index "informix".ix702_1 on "informix".cotb00014 (num_oc);
|
|
create index "informix".ix703_5 on "informix".cotb00014 (cod_sp);
|
|
create index "informix".ix703_6 on "informix".cotb00014 (cod_sp_sec);
|
|
|
|
|