Re: " " around fields with psql

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: " " around fields with psql
Date: 2012-02-11 08:03:56
Message-ID: jh57dc$lrh$1@reversiblemaps.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2012-02-10, Steve Clark <sclark(at)netwolves(dot)com> wrote:

> Is there a way with psql to get column output to be
> "data1","data2",...,"datan"

assuming you are trying to be compatible with CSV:

copy ( your_query_here ) to stdout with csv header ;

--
⚂⚃ 100% natural

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jasen Betts 2012-02-11 08:19:45 Re: default database selector
Previous Message Bruce Momjian 2012-02-11 00:25:40 Re: psql latex and newlines