agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-sql@postgresql.org
Subject: Re: tab delimiter in output
Date: Mon, 25 Nov 2013 12:42:46 +0100
Message-ID: <l6vd3b$sqp$1@ger.gmane.org> (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>
Marcin Krawczyk, 25.11.2013 12:14:
> 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 ?
>
Which SQL tool do you use?
Maybe your SQL client simply doesn't display the tab character?
--
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) latest in thread
Message-ID: <l6vd3b$sqp$1@ger.gmane.org>
Permalink: ../l6vd3b$sqp$1@ger.gmane.org/
Also on: postgresql.org/message-id/l6vd3b$sqp$1@ger.gmane.org
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: spam_eater@gmx.net
Subject: Re: tab delimiter in output
In-Reply-To: <l6vd3b$sqp$1@ger.gmane.org>
* 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