From: Viktor A. <a2891891@smail.Uni-Koeln.DE>
To: Postgres-Interface <pgsql-interfaces@postgreSQL.org>
Subject: Re: [INTERFACES] libpq++ - copy - default values
Date: Thu, 4 Mar 1999 18:14:34 +0100
Message-ID: <00e801be6662$7aa340a0$0200a8c0@Tischrechner.rrz.uni-koeln.de> (raw)
>> My problem is, that I don't know how I can tell the copy-command to
>> leave the first field untouched, so that it gets the default value from a
>> sequence....
>
>You can't. COPY is for plain verbatim dumping and reloading of data.
>Use INSERT if you need to have any calculations done.
Hmm..Thats what I was afraid of..... I don't have the slightest idea on how
to get the data into that PQExec("INSERT .....") String... Do you know,
where
I can get some sample source on this?
Thanks!
Viktor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-interfaces@postgresql.org
Cc: a2891891@smail.Uni-Koeln.DE
Subject: Re: [INTERFACES] libpq++ - copy - default values
In-Reply-To: <00e801be6662$7aa340a0$0200a8c0@Tischrechner.rrz.uni-koeln.de>
References: <00e801be6662$7aa340a0$0200a8c0@Tischrechner.rrz.uni-koeln.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox