[TLM] duda con clave primaria

From: Daneel Tamayo <daneel_jose07(at)yahoo(dot)com>
To: "pgsql-es-ayuda(at)postgresql(dot)org" <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: [TLM] duda con clave primaria
Date: 2007-12-25 04:16:48
Message-ID: 20071225041917.3593B41428A@qatlm3.calidad2.pandasoftware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

gracias a todos por responder

aki envio algunas de las tablas a ver si se ve mejor mi pregunta

---con esta tabla es la ke me sucede la repeticion de num_comp
CREATE TABLE COMPROBANTE_CUENTA
(NUM_COMP INT,
Fecha Fecha, FOREIGN KEY (NUM_COMP, Fecha) REFERENCES COMPROBANTE,
NUM_CUENTA INT REFERENCES CUENTA,tipo char,
VALOR SALDO,
id serial, PRIMARY KEY(NUM_CUENTA ,NUM_COMP, Fecha,tipo));

CREATE TABLE COMPROBANTE
(NU_COMP INT,
Fecha Fecha,
ID SERIAL, PRIMARY KEY(NU_COMP,Fecha ));

create domain Fecha date
DEFAULT current_date
NOT NULL;

a lo mejor es algo que me falta o me sobra

gracias a todos


---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Jaime Casanova 2007-12-25 16:48:54 Re: duda con clave primaria
Previous Message Leonel Nunez 2007-12-24 19:07:58 [TLM] Re: backup pg_dumpall