From: | Daymel Bonne Solís <dbonne(at)uci(dot)cu> |
---|---|
To: | "pgsql-es-ayuda(at)postgresql(dot)org" <pgsql-es-ayuda(at)postgresql(dot)org> |
Subject: | Validar llaves foráneas |
Date: | 2011-11-12 23:16:23 |
Message-ID: | 4EBEFE47.3010709@uci.cu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
He creado una tabla que contiene una llave foránea. Luego he
deshabilitado las llaves foráneas con el comando ALTER TABLE ....
DISABLE TRIGGERS ALL. Luego he insertado valores en dicha tabla que
invalidan la llave foránea, y por último he vuelto a habilitar con ALTER
TABLE .... ENABLE TRIGGERS ALL.
Existe alguna forma de validar los datos que se han insertado en la
tabla anteriormente???
Saludos.
--
Daymel Bonne Solís dbonne(at)uci(dot)cu
PostgreSQL UCI http://postgresql.uci.cu
/*
* Los programas se regalan, el conocimiento
* se dispersa, y el misterio se vende,
* nosotros vivimos de vender el misterio.
*/
Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!
http://www.antiterroristas.cu
http://justiciaparaloscinco.wordpress.com
From | Date | Subject | |
---|---|---|---|
Next Message | Jaime Casanova | 2011-11-13 23:15:06 | Re: [pgsql-es-ayuda] Validar llaves foráneas |
Previous Message | Alvaro Herrera | 2011-11-12 03:25:34 | Re: replicacion por stream de WAL |