Re: truncate column width

From: "Gregory Wood" <gregw(at)com-stock(dot)com>
To: "Hugo Coolens" <hugo(dot)coolens(at)skynet(dot)be>
Cc: "PostgreSQL-General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: truncate column width
Date: 2002-02-25 14:23:26
Message-ID: 000f01c1be07$fdb412d0$7889ffcc@comstock.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Is it possible to truncate the width of certain columns when selecting
> records?

Certainly.

> something like:
> select * from mytable where width of this_column truncated to 30
> characters;

select substr('this_column', 1, 30) as this_column_trunc from mytable;

Greg

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Devrim GUNDUZ 2002-02-25 14:55:24 Re: install psql 7.1.3 - rh6.2 - libreadline.so.4
Previous Message Boulgakov, Andrei 2002-02-25 14:05:34 Hebrew support?