Re: Spacing in output

Поиск
Список
Период
Сортировка
От Rolf Østvik
Тема Re: Spacing in output
Дата
Msg-id Xns95666F7B078E1rolfostvikjobbyahoon@200.46.204.72
обсуждение исходный текст
Ответ на Spacing in output  (Jerome Lyles <susemail@hawaii.rr.com>)
Список 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 по дате отправления:

Предыдущее
От: lrnr
Дата:
Сообщение: How to find a column name
Следующее
От: tmp
Дата:
Сообщение: Re: Getting track of foreign keys