Getting datatype before SELECT

Поиск
Список
Период
Сортировка
От Glenn Sullivan
Тема Getting datatype before SELECT
Дата
Msg-id 3611135E.491D2598@nmr.varian.com
обсуждение исходный текст
Ответы Re: [SQL] Getting datatype before SELECT  (darcy@druid.net (D'Arcy J.M. Cain))
Re: [SQL] Getting datatype before SELECT  (Bob Smither <smither@C-C-I.Com>)
Re: [SQL] Getting datatype before SELECT  (herouth maoz <herouth@oumail.openu.ac.il>)
Список pgsql-sql
In my C code which communicates with the Postgres database,
I have the need to determine the datatype of a column, before
I have done a SELECT command.  I have the name of the column,
but I cannot seem to figure out how to get the datatype information
until after I have done a SELECT.  Then I can call  PQfnumber() and
PQftype() to get the type.  Does anyone know how to do this?

Thanks,

Glenn

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

Предыдущее
От: Herouth Maoz
Дата:
Сообщение: Re: [SQL] Re: Another nut to crack with insertion into tables... *sigh*
Следующее
От: David Hartwig
Дата:
Сообщение: Re: [SQL] Getting datatype before SELECT