Re: [INTERFACES] libpq++ - copy - default values

From: "Viktor A(dot)" <a2891891(at)smail(dot)Uni-Koeln(dot)DE>
To: "Postgres-Interface" <pgsql-interfaces(at)postgreSQL(dot)org>
Subject: Re: [INTERFACES] libpq++ - copy - default values
Date: 1999-03-04 17:14:34
Message-ID: 00e801be6662$7aa340a0$0200a8c0@Tischrechner.rrz.uni-koeln.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

>> 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

Browse pgsql-interfaces by date

  From Date Subject
Next Message James Thompson 1999-03-04 19:17:57 Re: [INTERFACES] ECPG & 'exec sql connect to' question
Previous Message Pavel PaJaSoft Janousek 1999-03-04 16:01:05 ECPG & 'exec sql connect to' question