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 [email protected]
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
-
Enviado a la lista de correo pgsql-es-ayuda ([email protected])
Para cambiar tu suscripción:
http://www.postgresql.org/mailpref/pgsql-es-ayuda