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: | duda con clave primaria |
Date: | 2007-12-25 04:16:48 |
Message-ID: | 269855.46531.qm@web45510.mail.sp1.yahoo.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.
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 |