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

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

From
"Viktor A."
Date:
>> 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