Ver Mensaje Individual
  #3 (permalink)  
Antiguo 10/03/2010, 14:18
edwinsp
 
Fecha de Ingreso: septiembre-2008
Mensajes: 75
Antigüedad: 15 años, 8 meses
Puntos: 1
Respuesta: insertando en campos tipo array

pues estoy tratando de declararlo como un array del tipo de dato que yo he creado, me sorprende porque yo si he podido crear la tabla sin ningun tipo de error

es mas antes hice esto:

CREATE TABLE prestamocab
(
codempresa character(3) NOT NULL,
tipo character(1) not null,
codigoreg character varying(50) not null,
codanexo character varying(6) NOT NULL,
fecha date not null,
moneda character(2) DEFAULT '1'::bpchar,
tcambio real not null,
total real not null,
porcinicial real not null,
cuotainicial real not null,
afectaigv character(1) not null,
nrocuotas int not null,
usuario character varying(20) NOT NULL,
fechareg timestamp without time zone DEFAULT now(),
estado character(1) not null,
detalle td_detalle_prestamo,
CONSTRAINT "PK_prestamocab" PRIMARY KEY (codigoreg),
CONSTRAINT "CH_prestamocab_tipo" CHECK (tipo = 'L'::bpchar OR tipo = 'P'::bpchar OR tipo = 'O'::bpchar)
)
WITH (OIDS=FALSE);

pero en este caso solo me aceptaria un solo detalle y mi idea es tener un array de detalle en esa tabla

gracias por la atencion