| От | William ZHANG |
|---|---|
| Тема | Re: Get all table names that have a specific column |
| Дата | |
| Msg-id | dhjltl$f6n$1@news.hub.org обсуждение исходный текст |
| Ответ на | Get all table names that have a specific column (Emi Lu <emilu@cs.concordia.ca>) |
| Список | pgsql-general |
pgsql stores table names in pg_class.relname, column names in pg_attribute.attname. Read the document and you can get the solution. "Emi Lu" <emilu@cs.concordia.ca> wrote > Greetings, > > I am not very familiar with the system views/tables in postgreSQL. I'd > like to get all table names that have a column let's say named "col1". > > For example, > t1 (... col1 varchar(3) ... ) > t2 (... col1 varchar(3) ... ) > t3 (... ...) > > > After querying the system tables/views, I can get the result something > like : > > tables contain column "col1" > --------------------------------------------- > t1 > t2 > (2 rows) > > > Thanks a lot, > Emi > > > > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Have you searched our list archives? > > http://archives.postgresql.org >
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера