Re: Updatable Views - DEFAULT doesn't inherit from table???
В списке pgsql-general по дате отправления:
| От | Csaba Együd |
|---|---|
| Тема | Re: Updatable Views - DEFAULT doesn't inherit from table??? |
| Дата | |
| Msg-id | ghbee0$27hv$1@news.hub.org обсуждение |
| Ответ на | Re: Updatable Views - DEFAULT doesn't inherit from table??? (Richard Huxton <dev@archonet.com>) |
| Список | pgsql-general |
"Richard Huxton" <dev@archonet.com> a következőket írta üzenetében news:49393A81.3030702@archonet.com... Csaba Együd wrote: > Thx for your reply. Is there any possible way to generate an sql to > "copy" these defaults to the view. Nothing pre-packaged that I know of. You could probably do something copying values about in pg_attribute and pg_constraint, but that'd be an "at your own risk" sort of activity I suspect. For simpler defaults etc. you could probably get what you need from information_schema.columns -- Richard Huxton Archonet Ltd -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general Or use of coalesce() function??? I mean sg like: ..., qtyunitid = coalesce(NEW.qtyunitid, -1), ... in the Rule def. -- Csaba
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера