Re: Determining a table column by the view column.

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: Determining a table column by the view column.
Дата
Msg-id 502AA66C.8050408@hogranch.com
обсуждение исходный текст
Ответ на Determining a table column by the view column.  (Dmitriy Igrishin <dmitigr@gmail.com>)
Список pgsql-general
On 08/14/12 7:18 AM, Dmitriy Igrishin wrote:
> Hey all,
>
> Is there way to determine a table column referenced by
> a view column via SQL?
>
> I want to create an universal function to determine
> mandatoriness of some column of the view (i.e.
> check the not null constraint of underlying table column).


note that a view column can be the result of a function or operation,
perhaps on fields of several columns from several tables being joined in
the view.   how would your function cope with something like this?




--
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast



В списке pgsql-general по дате отправления:

Предыдущее
От: Scott Mead
Дата:
Сообщение: Re: Visualize database schema
Следующее
От: Edson Richter
Дата:
Сообщение: Re: Visualize database schema