Query to get column-names in table via PG tables?

Поиск
Список
Период
Сортировка
От Ken Johanson
Тема Query to get column-names in table via PG tables?
Дата
Msg-id 4785BD3E.2010805@kensystem.com
обсуждение исходный текст
Ответы Re: Query to get column-names in table via PG tables?  ("Joshua D. Drake" <jd@commandprompt.com>)
Re: Query to get column-names in table via PG tables?  ("Merlin Moncure" <mmoncure@gmail.com>)
Список pgsql-general
Hi all,

I am looking for expertise on how to program the equivalent to this
query, but using the pg_catalog tables, which I understand have fewer
security restrictions than information_schema in some cases:

SELECT column_name
FROM information_schema.columns
WHERE table_catalog=? AND table_schema=? AND table_name=?
ORDER BY ordinal_position

I need this to lookup the column names and their ordinal position for a
given table (implementing a driver call).

Thanks in advance,
Ken



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: vacuum, dead rows, usual solutions didn't help
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: vacuum, dead rows, usual solutions didn't help