Re: tab delimiter in output - Mailing list pgsql-sql

From seikath
Subject Re: tab delimiter in output
Date
Msg-id 529C57BF.6050700@gmail.com
Whole thread Raw
In response to tab delimiter in output  (Marcin Krawczyk <jankes.mk@gmail.com>)
List 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




pgsql-sql by date:

Previous
From: Venky Kandaswamy
Date:
Subject: Re: isnumeric(varchar) by psql
Next
From: David Johnston
Date:
Subject: Re: Results list String to comma separated int