Re: Field size

Поиск
Список
Период
Сортировка
От Dmitriy Igrishin
Тема Re: Field size
Дата
Msg-id CAAfz9KPg0Cb7uEpvO2ATs08OzzYi3Za2SDXT2BGUtS=qjx_7Wg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Field size  (aliosa <constantinica_alin@yahoo.com>)
Список pgsql-general
Hey aliosa

2012/8/16 aliosa <constantinica_alin@yahoo.com>
Hello
I am using libpq to find information about fileds of table ( type and size).
I have a problem with getting the sizeof varchar fields.
If a table has a fiels varchar[35] and want to obtain 35.
I used PQgetlength or PQfsize  but is not good for my work.
Can someone tell me what function shall I use to get the size of filed ?
You should use PQfmod().

--
// Dmitriy.


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

Предыдущее
От: aliosa
Дата:
Сообщение: Re: Field size
Следующее
От: Wolfgang Keller
Дата:
Сообщение: Re: Visualize database schema