Re: Getting column names/types from select query?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Getting column names/types from select query?
Дата
Msg-id 715370.1611161166@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Getting column names/types from select query?  ("Wesley Aptekar-Cassels" <me@wesleyac.com>)
Ответы Re: Getting column names/types from select query?
Список pgsql-hackers
"Wesley Aptekar-Cassels" <me@wesleyac.com> writes:
> I am interested in figuring out how to get the names and types of the
> columns from an arbitrary query.

Where do you need this information?  Usually the easiest way is to
prepare (plan) the query and then extract metadata, for instance
PQprepare and PQdescribePrepared if using libpq.

            regards, tom lane



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