Return-Path: owner-postman Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with SMTP id QAA04527 for postgres-redist; Fri, 16 Sep 1994 16:08:04 -0700 Resent-From: POSTGRES mailing list Resent-Message-Id: <199409162308.QAA04527@nobozo.CS.Berkeley.EDU> X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol Sender: owner-postman@postgres.Berkeley.EDU X-Return-Path: owner-postman Received: from NMSU.Edu (dns1.NMSU.Edu [128.123.3.5]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with ESMTP id QAA04517 for ; Fri, 16 Sep 1994 16:08:02 -0700 Received: from cs by NMSU.Edu (8.6.8.1/NMSU-1.18) id RAA29779; Fri, 16 Sep 1994 17:08:01 -0600 Date: Fri, 16 Sep 1994 17:08:00 -0600 Message-Id: <199409162308.RAA29779@NMSU.Edu> Received: from boron (boron.CS.NMSU.Edu) by cs (4.1/SMI-4.1) id AA25561; Fri, 16 Sep 94 17:08:00 MDT Received: by boron (4.1/SMI-4.1) id AA12666; Fri, 16 Sep 94 17:07:59 MDT From: pmamnani@cs.nmsu.edu (Praveen Mamnani) To: postgres@postgres.Berkeley.EDU Resent-To: postgres-redist@postgres.Berkeley.EDU Resent-Date: Fri, 16 Sep 94 16:08:04 -0700 Resent-XMts: smtp From: pmamnani@cs.nmsu.edu (Praveen Mamnani) To: postgres@postgres.berkeley.edu Subject: "append", using libpq ? I am writing some programs in C using Libpq. I am doing basic things as, creating a database, inserting some records(classes), and retrieving the data. The reference manual shows the insertion of class using the copy command (from stdin). I wanted to execute the query append to insert the instances of some classes. I tried PQexec("append..."), but this does not seem to work. I am not sure that libpq allows execution of such queries using PQexec. If not, then is there another way instead of using copy command and PQputline. Your help would be very appreciated. Thanks, Oops, one more thing. If you have some basic examples of appending and retrieving data from a database, I would really appreciate if I can get some of them. Thank you . Praveen. ============================================================================== To add/remove yourself to/from the POSTGRES mailing list: send mail with the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU" If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and a human will deal with it. DO NOT post to the "postgres" mailing list. ==============================================================================