Re: Complete instruction in a trigger

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Complete instruction in a trigger
Дата
Msg-id 41F8D214.9010707@archonet.com
обсуждение исходный текст
Ответ на Complete instruction in a trigger  (Wilton <wilton.wonrath@microwork.inf.br>)
Список pgsql-sql
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


В списке pgsql-sql по дате отправления:

Предыдущее
От: Wilton
Дата:
Сообщение: Complete instruction in a trigger
Следующее
От: "Andrei Bintintan"
Дата:
Сообщение: Constraint on 2 column possible?