| От | Mike Mascari |
|---|---|
| Тема | Re: [GENERAL] update view |
| Дата | |
| Msg-id | 383F4FDE.71567C65@mascari.com обсуждение исходный текст |
| Ответ на | update view ("Brian Haney" <brian@cybernaut.com>) |
| Список | pgsql-general |
Brian Haney wrote: > I'm trying to update a table through a view and have read up on what > constitutes an 'updatable' view. I created a simple test case and cannot > get it to update the table through the view. In the transcript below, > notice that when I update the view, I get 'UPDATE 0' with no error message > or other complaints. What am I missing? Does PostgreSQL not support > updating through views? It does, but you must supply the RULE for what should happen in the event of an INSERT, UPDATE, or DELETE. See Chapter 35 in the Programmer's Guide - The Postgres Rule System, the section entitled "Rules on INSERT, UPDATE and DELETE". Hope that helps, Mike
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера