| От | H. Hall |
|---|---|
| Тема | Re: can I update multiple table at a time? |
| Дата | |
| Msg-id | 48EF376F.8050307@reedyriver.com обсуждение исходный текст |
| Ответ на | can I update multiple table at a time? (Jagadeesh <mnjagadeesh@gmail.com>) |
| Список | pgsql-admin |
Jagadeesh wrote: > Hello Gurus, > > Is it possible to update two table using single sql statement? huh? > let me be clear > > I have table master with state and date field. And in history table I > have same fields i.e., state and date. I'm writing an update statement > to set 'open' state records to 'closed' state after 7. both table can > be joined using id. > > Any thoughts? > > Thanks > > Update a view using the rule system? See docs on rules: http://www.postgresql.org/docs/8.3/static/rules-update.html and this thread: http://forums.devshed.com/postgresql-help-21/rules-views-and-updating-multiple-tables-58288.html cheers, HH -- H. Hall ReedyRiver Group LLC http://www.reedyriver.com
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера