Re: How to obtain the max length of a varchar(50) field. - Mailing list pgsql-novice

From Andreas Kretschmer
Subject Re: How to obtain the max length of a varchar(50) field.
Date
Msg-id 20110505090339.GA16334@tux
Whole thread Raw
In response to How to obtain the max length of a varchar(50) field.  (Mauro Ziliani <mauro@faresoftware.it>)
Responses Re: How to obtain the max length of a varchar(50) field.
List 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 by date:

Previous
From: Simon Riggs
Date:
Subject: Re: How to obtain the max length of a varchar(50) field.
Next
From: Mauro Ziliani
Date:
Subject: Re: How to obtain the max length of a varchar(50) field.