Olá, Concordo em numero, genero e grau, é memso hora de voltar/ir ao manual ou curso/treinamento. No Manual diz: http://www.postgresql.org/docs/9.1/static/ddl-constraints.html 5.3.5. Foreign KeysA foreign key constraint specifies that the values in a column (or a group of columns) must match the values appearing in some row of another table. We say this maintains thereferential integrity between two related tables.
Claudio Oliveira http://www.msisolucoes.com.br > Date: Thu, 15 Mar 2012 13:05:33 -0300 > From: [email protected] > To: [email protected] > Subject: Re: [pgbr-geral] Falha na Integridade da Constraint > > On 15-03-2012 09:48, Claudio Oliveira wrote: > > 1)-Quando eu disse erro eu não disse que é proposital, disse que é um ERRO > > que > > foi feito sem querer ou por falta de conhecimento. > > > Então é hora de voltar/ir ao manual ou curso/treinamento. > > > 3)-Se fizer o mesmo teste com return OLD dá certo entaum porque com NULL > > não dá ? > > > No manual [1] diz: > > "It can return NULL to skip the operation for the current row. This instructs > the executor to not perform the row-level operation that invoked the trigger > (the insertion, modification, or deletion of a particular table row)." > > > [1] http://www.postgresql.org/docs/current/static/trigger-definition.html > > > -- > Euler Taveira de Oliveira - Timbira http://www.timbira.com.br/ > PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento > _______________________________________________ > pgbr-geral mailing list > [email protected] > https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
_______________________________________________ pgbr-geral mailing list [email protected] https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
