| От | Gunnar \"Nick\" Bluth |
|---|---|
| Тема | Re: New Column existing table + View |
| Дата | |
| Msg-id | 568F7E83.40002@elster.de обсуждение исходный текст |
| Ответ на | New Column existing table + View ("drum.lucas@gmail.com" <drum.lucas@gmail.com>) |
| Список | pgsql-admin |
Am 07.01.2016 um 23:43 schrieb drum.lucas@gmail.com: > Hi all! > > Question 1: > > I want to add a new column to a base table, and add that new column to > an existing view... > > So all selects/updates/deletes translate back to the original table > > How can I do that? 1a) ALTER TABLE 1b) CREATE OR REPLACE VIEW (assuming you have your initial CREATE VIEW statement still around, just add the additional column and add the "OR REPLACE") 1c) See http://michael.otacoo.com/postgresql-2/postgres-9-3-feature-highlight-auto-updatable-views/ if that fits your needs. Cheers, -- Gunnar "Nick" Bluth DBA ELSTER Tel: +49 911/991-4665 Mobil: +49 172/8853339
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера