Received: from smail3.rrz.Uni-Koeln.DE (root@smail3.rrz.Uni-Koeln.DE [134.95.19.11]) by hub.org (8.9.2/8.9.1) with ESMTP id MAA64334 for ; Thu, 4 Mar 1999 12:14:04 -0500 (EST) (envelope-from a2891891@smail.Uni-Koeln.DE) Received: from Tischrechner (ra-uni3-c43-nc.rrz.Uni-Koeln.DE [134.95.89.44]) by smail3.rrz.Uni-Koeln.DE (8.8.6/8.8.6/RRZK-CL-8.8.6-1) with SMTP id SAA03259; Thu, 4 Mar 1999 18:13:59 +0100 (MET) Message-ID: <00e801be6662$7aa340a0$0200a8c0@Tischrechner.rrz.uni-koeln.de> From: "Viktor A." To: "Postgres-Interface" Subject: Re: [INTERFACES] libpq++ - copy - default values Date: Thu, 4 Mar 1999 18:14:34 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3155.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 >> 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