Re: [INTERFACES] libpq++ - copy - default values - Mailing list pgsql-interfaces

From Viktor A.
Subject Re: [INTERFACES] libpq++ - copy - default values
Date
Msg-id 00e801be6662$7aa340a0$0200a8c0@Tischrechner.rrz.uni-koeln.de
Whole thread Raw
List 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


pgsql-interfaces by date:

Previous
From: "Pavel PaJaSoft Janousek"
Date:
Subject: ECPG & 'exec sql connect to' question
Next
From: James Thompson
Date:
Subject: Re: [INTERFACES] ECPG & 'exec sql connect to' question