agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: seikath <seikath@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: tab delimiter in output
Date: Mon, 02 Dec 2013 10:49:51 +0100
Message-ID: <529C57BF.6050700@gmail.com> (raw)
In-Reply-To: <CABnqL31Db_0XBY_yNzDhZTJE1e7FBCSDU3QQwLX1q=ZHU1UE0A@mail.gmail.com>
References: <CABnqL31Db_0XBY_yNzDhZTJE1e7FBCSDU3QQwLX1q=ZHU1UE0A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>

hi Marcin,

try that for two tabs :
select concat('===[' , E'\t\t',']===');
select '===['|| E'\t\t'||']===';

cheers


On 11/25/2013 12:14 PM, Marcin Krawczyk wrote:
> Hi,
>
> I need to return concatenated columns separated by tab character and I can't get it to work. Here's what I tried:
>
> SELECT concat('aa', '\t', 'bb');
> SELECT concat('aa', CHR(9), 'bb');
> SELECT 'aa' || CHR(9) || 'bb';
> SELECT 'aa' || '\t' || 'bb';
>
> I get "aabb" instead of "aa       bb" in all cases. Is this a configuration issue ?
>
>
> regards
> mk



-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql



view thread (6+ messages)

Message-ID: <529C57BF.6050700@gmail.com>
Permalink:  ../529C57BF.6050700@gmail.com/
Also on:    postgresql.org/message-id/529C57BF.6050700@gmail.com

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: seikath@gmail.com
  Subject: Re: tab delimiter in output
  In-Reply-To: <529C57BF.6050700@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox