Search Postgresql Archives

Tigger after delete with plpgsql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, I`m try to use this code for my After Delete trigger:

  delete
  from MOVIMENTO
  where (IDEMPRESA = OLD.idempresa) and
        (upper(TABELA) = 'NFENTRADA_ITEM') and
        (CODIGO = OLD.idempresa_item);

But, when execute. show me error.. that`s says

"old is not initialize" (sorry,but I dont know how exactly error msy because in my SO, give in portuguese)..

my question is:  how can I use OLd and NEW in posgre?

Best Regards,


T.·.F.·.A.·.     S+F

Fellipe Henrique P. Soares

"Life is a game without Tutorial"

http://fellipeh.eti.br



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux