not permanent insert into stud values('myname')

From: rony khoury <ron(at)cyberia(dot)net(dot)lb>
To: "pgsql-novice(at)postgreSQL(dot)org" <pgsql-novice(at)postgreSQL(dot)org>, "pgsql-interfaces(at)postgreSQL(dot)org" <pgsql-interfaces(at)postgreSQL(dot)org>
Subject: not permanent insert into stud values('myname')
Date: 1998-07-29 07:15:12
Message-ID: 35BECC00.1059EB7@cyberia.net.lb
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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
#
----------------------------------------------------------

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Sandeep 1998-07-29 09:04:32 Tcl/Tk interface for Postgres95
Previous Message David Gould 1998-07-29 05:16:02 Re: [HACKERS] Coping with backend crash in libpq