Re: Spacing in output

From: Duane Lee - EGOVX <DLee(at)mail(dot)maricopa(dot)gov>
To: "'Jerome Lyles'" <susemail(at)hawaii(dot)rr(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Spacing in output
Date: 2004-09-14 21:15:51
Message-ID: 64EDC403A1417B4299488BAE87CA7CBF01CD0F9D@maricopa_xcng0
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

What is the field size of prod_name? You could use SUBSTR(prod_name,1,xx)
where xx is the max number of characters you want to see.

Duane

-----Original Message-----
From: Jerome Lyles [mailto:susemail(at)hawaii(dot)rr(dot)com]
Sent: Tuesday, September 14, 2004 2:06 PM
To: pgsql-general(at)postgresql(dot)org
Subject: [GENERAL] Spacing in output

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:

sql_tutorial=> SELECT prod_name FROM Products;
prod_name
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
-----------------------------
8 inch teddy bear
12 inch teddy bear
18 inch teddy bear

This is the way it looks on the Konsole:

sql_tutorial=> SELECT prod_name FROM Products;

prod_name
----------------------------------------------------------------------------
----------
----------------------------------------------------------------------------
----------
----------------------------------------------------------------------------
----------
------------------
8 inch teddy bear

12 inch teddy bear

18 inch teddy bear

How can I change the Konsole output to look like the first example?
Thanks,
Jerome

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas F.O'Connell 2004-09-14 21:19:50 Re: Spacing in output
Previous Message Ying Lu 2004-09-14 21:06:49 Re: Changed a column type from "integer" to varchar