Re: Spacing in output

From: "Rolf stvik" <rolfostvikjobb(at)yahoo(dot)no>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Spacing in output
Date: 2004-09-16 08:57:43
Message-ID: Xns95666F7B078E1rolfostvikjobbyahoon@200.46.204.72
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

susemail(at)hawaii(dot)rr(dot)com (Jerome Lyles) wrote in
news:200409141105(dot)46091(dot)susemail(at)hawaii(dot)rr(dot)com:

> I have a small training database: sql_tutorial. It works fine but the
spacing
> between the output lines is too much. This is the way it looks when I
copy
> and paste from the Konsole to this email:

the simplest is
SELECT prod_name::text FROM products;

(will cast the char(255) column to text and in the process removes all
trailing spaces.)

or use trim function to remove trailing spaces.

--
Rolf

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Paramveer.Singh 2004-09-16 09:00:43 lexicographical ordering in postgres
Previous Message aditya Kulkarni 2004-09-16 08:07:09 Invalid large object descriptor : 0 with autocommit