Describe table and varchar lrngth

From: Constantin Khatsckevich <home(at)const(dot)ru>
To: pgsql-general(at)postgresql(dot)org
Subject: Describe table and varchar lrngth
Date: 2004-07-15 08:38:03
Message-ID: 40F6426B.6050109@const.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello!

I need get ordered length of the varchcar field in PHP. But
pg_FieldLength return -1 (it's right), but I need to get max length for
this field. For example,
create table t (
str varchar(40)
);

I need to get 40...

Help me please!

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Eckermann 2004-07-15 13:45:19 Re: Getting started with replication
Previous Message Devrim GUNDUZ 2004-07-15 08:35:11 Re: tcl and rpms for rhel3