How to obtain the max length of a varchar(50) field.

Поиск
Список
Период
Сортировка
От Mauro Ziliani
Тема How to obtain the max length of a varchar(50) field.
Дата
Msg-id 4DC264E8.1070909@faresoftware.it
обсуждение исходный текст
Ответы Re: How to obtain the max length of a varchar(50) field.  (Simon Riggs <simon@2ndQuadrant.com>)
Re: How to obtain the max length of a varchar(50) field.  (Andreas Kretschmer <akretschmer@spamfence.net>)
Список pgsql-novice
Hi all.
I'm working with Postgres 9.0 and wxWidgets.
I need to query the db about a field of a table.

The table T has a field varchar(50).

table: TAB0
customer: varchar(50)

How can I get the max size of the field?

The PQfsize function give me -1 because the field has dynamic size.

Can you help me?

Best regards
   MZ.

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

Предыдущее
От: Sean Davis
Дата:
Сообщение: Re: Looking for table in PostregSQL that contains Operating System and Processor information
Следующее
От: ALT SHN
Дата:
Сообщение: Re: [GRASS-user] OCR