Re: tab delimiter in output

From: seikath <seikath(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: tab delimiter in output
Date: 2013-12-02 09:49:51
Message-ID: 529C57BF.6050700@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message David Johnston 2013-12-05 03:02:07 Re: Results list String to comma separated int
Previous Message Venky Kandaswamy 2013-11-27 21:54:22 Re: isnumeric(varchar) by psql