| От | Richard Huxton |
|---|---|
| Тема | Re: columns refered to in view |
| Дата | |
| Msg-id | 200404142105.13441.dev@archonet.com обсуждение исходный текст |
| Ответ на | columns refered to in view (Alexander Cohen <alex@toomuchspace.com>) |
| Список | pgsql-general |
On Wednesday 14 April 2004 14:59, Alexander Cohen wrote: > I have created a view with this query: > > CREATE VIEW testview AS SELECT table.column AS col1, table2.column AS > coll2 FROM table, table2; > > Later on, i want to get the table and column name that a field refers > to in this view. In other words i want to get the table and column that > the column 'col1' refers to. Im looking for 'table.column'. How can i > get this information? If you're using 7.4, you can look in the information-schema: SELECT * FROM information_schema.view_column_usage WHERE view_name = 'foo_view'; This only lists columns that "show through" not calculated columns (AFAIK). -- Richard Huxton Archonet Ltd
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера