Re: Spacing in output - Mailing list pgsql-general

From Rolf Østvik
Subject Re: Spacing in output
Date
Msg-id Xns95666F7B078E1rolfostvikjobbyahoon@200.46.204.72
Whole thread Raw
In response to Spacing in output  (Jerome Lyles <susemail@hawaii.rr.com>)
List pgsql-general
susemail@hawaii.rr.com (Jerome Lyles) wrote in
news:200409141105.46091.susemail@hawaii.rr.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


pgsql-general by date:

Previous
From: lrnr
Date:
Subject: How to find a column name
Next
From: tmp
Date:
Subject: Re: Getting track of foreign keys