agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
From: Praveen Mamnani <pmamnani@cs.nmsu.edu>
To: postgres@postgres.Berkeley.EDU
Date: Fri, 16 Sep 1994 17:08:00 -0600
Message-ID: <199409162308.RAA29779@NMSU.Edu> (raw)

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



reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: postgres@postgres.berkeley.edu
  Cc: pmamnani@cs.nmsu.edu
  Subject: Re: 
  In-Reply-To: <199409162308.RAA29779@NMSU.Edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox