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

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: Query to get column-names in table via PG tables?
Дата
Msg-id 4785BEB1.40006@commandprompt.com
обсуждение исходный текст
Ответ на Query to get column-names in table via PG tables?  (Ken Johanson <pg-user@kensystem.com>)
Ответы Re: Query to get column-names in table via PG tables?  (Ken Johanson <pg-user@kensystem.com>)
Список pgsql-general
Ken Johanson wrote:
> 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).

Just curious... but why is ordinal position important here?

Joshua D. Drake

>
> Thanks in advance,
> Ken
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>


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

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