pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: rony khoury <ron@cyberia.net.lb>
To: pgsql-novice@postgreSQL.org <pgsql-novice@postgreSQL.org>
To: pgsql-interfaces@postgreSQL.org <pgsql-interfaces@postgreSQL.org>
Subject: not permanent insert into stud values('myname')
Date: Wed, 29 Jul 1998 10:15:12 +0300
Message-ID: <35BECC00.1059EB7@cyberia.net.lb> (raw)



Hello ,

following is a part of my code , can any body tell me why it works fine
,
but 'myname' does not remain permanent in the table although I'm loging
in as postgres
and see 'myname' in the result when I run the program ?

thanks ,
Rony .

--------------------- C code -------------------
res = PQexec(conn,"insert into stud values('myname')");
PQclear(res);
res = PQexec(conn,"select * from stud");

for (i=0;i<PQntuples(res);i++) {
  printf("\n answer is %s",PQgetvalue(res,i,0));

---------------------- output -----------------------
#a.out
answer is rony
answer is myname
#
----------------------------------------------------------

view thread (5+ messages)  latest in thread

Message-ID: <35BECC00.1059EB7@cyberia.net.lb>
Permalink:  ../35BECC00.1059EB7@cyberia.net.lb/
Also on:    postgresql.org/message-id/35BECC00.1059EB7@cyberia.net.lb

 · 

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: pgsql-interfaces@postgresql.org
  Cc: ron@cyberia.net.lb, pgsql-novice@postgreSQL.org
  Subject: Re: not permanent insert into stud values('myname')
  In-Reply-To: <35BECC00.1059EB7@cyberia.net.lb>

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

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