Re: Rules in views, how to?

Поиск
Список
Период
Сортировка
Искать
От
Alban Hertroys
Тема
Re: Rules in views, how to?
Дата
Msg-id
B1A9D663-3D84-496F-8B6D-B89CAAFA3DAB@solfertje.student.utwente.nl
Ответ на
Список
Дерево обсуждения
Rules in views, how to? Andre Lopes <lopes80andre@gmail.com>
Re: Rules in views, how to? Alban Hertroys <dalroi@solfertje.student.utwente.nl>
Re: Rules in views, how to? Andre Lopes <lopes80andre@gmail.com>
Re: [SOLVED] Rules in views, how to? Andre Lopes <lopes80andre@gmail.com>
Re: [SOLVED] Rules in views, how to? Sam Mason <sam@samason.me.uk>
Re: [SOLVED] Rules in views, how to? Andre Lopes <lopes80andre@gmail.com>
Re: [SOLVED] Rules in views, how to? Sam Mason <sam@samason.me.uk>
Re: Rules in views, how to? Alban Hertroys <dalroi@solfertje.student.utwente.nl>
On 6 Jul 2010, at 12:28, Andre Lopes wrote:

> Now I need also to add an INSTEAD UPDATE rule and an INSTEAD DELETE rule, but I have some doubts about it... let me explain...
> 
> Ok, I need to create an INSTEAD UPDATE rule in this view, but I don't know how to use the clause WHERE in the UPDATE rule. For example the UPDATE could be done when "WHERE email = 'X' " or "WHERE id = 'Y' ".
> 
> Question: How can I deal with this?


In the WHERE-clause you use the columns from the OLD record that uniquely identify that record.

Alban Hertroys

--
Screwing up is an excellent way to attach something to the ceiling.


!DSPAM:737,4c330b82286211968020069!


В списке pgsql-general по дате отправления
От: Andre Lopes
Дата:
Сообщение: Rules in views, how to?
От: Andre Lopes
Дата:
Сообщение: Re: Rules in views, how to?
FAQ