Re: tab delimiter in output

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: tab delimiter in output
Date: 2013-11-25 11:42:46
Message-ID: l6vd3b$sqp$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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?

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Marcin Krawczyk 2013-11-25 12:00:01 Re: tab delimiter in output
Previous Message Ian Lawrence Barwick 2013-11-25 11:26:35 Re: tab delimiter in output