Re: Field length ??

From: Markus Schaber <schabi(at)logix-tt(dot)com>
To: Frank Bax <fbax(at)sympatico(dot)ca>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Field length ??
Date: 2006-04-20 15:36:41
Message-ID: 4447AA89.9060405@logix-tt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi, Frank,

Frank Bax wrote:

> Except that the original fields were neither variable length datatypes,
> not type text.
> create table test(]
> satu char(10),
> dua char(5)
> );

char is a textual type (in opposite to numeric types), and they are
handled as variable length datatypes internally (even if given a limit).

See http://www.postgresql.org/docs/8.1/static/datatype-character.html

HTH,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS

Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2006-04-20 15:44:25 Re: Field length ??
Previous Message Bruno Wolff III 2006-04-20 15:23:48 Re: ask syntax sql to get length of field