Skip site navigation (1) Skip section navigation (2)

Re: copy command...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Peter Tan" <kaihua(at)cs(dot)stanford(dot)edu>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: copy command...
Date: 2001-10-26 19:28:03
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
"Peter Tan" <kaihua(at)cs(dot)stanford(dot)edu> writes:
> When using the copy command to bulk load data, could I specify the string of
> "end of record", insted of using newline? If the answer is no, is there any
> alternative way?

Make a sed or awk script that changes newlines to backslash-newline,
except for the ones you want to treat as end of record.

			regards, tom lane

In response to

pgsql-novice by date

Next:From: Brett W. McCoyDate: 2001-10-26 20:04:41
Subject: Re: copy command...
Previous:From: Peter TanDate: 2001-10-26 18:39:55
Subject: copy command...

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group