Wilton wrote:
> Hi...
> 
> People, i wanna know how can i know inside of a function whar the 
> trigger called, i mean which instruction SQL it called.
> 
> I do not wanna know if it´s a insert, update or delete (tp_op), i need 
> to know the complete instruction.
> 
> For example, i need to know something like this:
> 
> update phones set number = '9999-2222';
> 
> Do you know if maybe exists a tg_stantement?
No, and the situation isn't quite as simple as that. Think about 
foreign-keys with a cascading update.
What precisely are you trying to do?
--  Richard Huxton  Archonet Ltd