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

From: Mauro Ziliani <mauro(at)faresoftware(dot)it>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: How to obtain the max length of a varchar(50) field.
Date: 2011-05-05 10:09:34
Message-ID: 4DC2775E.2070402@faresoftware.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On 05/05/2011 11:03, Simon Riggs wrote:
> On Thu, May 5, 2011 at 9:50 AM, Mauro Ziliani<mauro(at)faresoftware(dot)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?
>>
>> The PQfsize function give me -1 because the field has dynamic size.
>>
>> Can you help me?
> Try PQfmod()
>
Ok I'll try it. Reading I skip this function.
Thank you.

MZ

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Mauro Ziliani 2011-05-05 10:10:51 Re: How to obtain the max length of a varchar(50) field.
Previous Message Andreas Kretschmer 2011-05-05 09:03:40 Re: How to obtain the max length of a varchar(50) field.