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

Поиск
Список
Период
Сортировка
От Andreas Kretschmer
Тема Re: How to obtain the max length of a varchar(50) field.
Дата
Msg-id 20110505090339.GA16334@tux
обсуждение исходный текст
Ответ на How to obtain the max length of a varchar(50) field.  (Mauro Ziliani <mauro@faresoftware.it>)
Ответы Re: How to obtain the max length of a varchar(50) field.  (Mauro Ziliani <mauro@faresoftware.it>)
Список pgsql-novice
Mauro Ziliani <mauro@faresoftware.it> wrote:

> 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?

select max(length(customer)) from tab0;



Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: How to obtain the max length of a varchar(50) field.
Следующее
От: Mauro Ziliani
Дата:
Сообщение: Re: How to obtain the max length of a varchar(50) field.