Received: from bbs.intervista.com.br (nserver.intervista.com.br [200.245.102.5]) by hub.org (8.9.3/8.9.1) with SMTP id IAA43292 for ; Tue, 20 Apr 1999 08:31:30 -0400 (EDT) (envelope-from relmag@intervista.com.br) X-ROUTED: Tue, 20 Apr 1999 09:37:36 0000 X-TCP-IDENTITY: Relmag Received: from [200.245.102.148] by bbs.intervista.com.br with smtp id 095a17b8 ; Tue, 20 Apr 1999 09:37:24 0000 Sender: Paulo Message-ID: <371C7348.B2CF1A76@intervista.com.br> Date: Tue, 20 Apr 1999 09:30:00 -0300 From: "Magnum Ind. da Amazonia S/A" X-Mailer: Mozilla 4.5 [en] (X11; U; Linux 2.0.36 i586) X-Accept-Language: pt-BR, en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Re: [SQL] Questions about embedded-sql! References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit anna_langer@hotmail.com wrote: > > Hi! > > We are having some problems with writing embedded-sql. ... > res = PQexec(conn, "select * from test1"); > if (!res || PQresultStatus(res) != PGRES_COMMAND_OK) > { > fprintf(stderr, "DECLARE CURSOR command failed\n"); > PQclear(res); > exit_nicely(conn); > } > PQclear(res); > ... > > We really need some help!!!! > > Anna and Maria Hi Anna and Maria The sample code above is not embedded-sql. What do you really need? Help in embedded-sql or help in the use of "libpq"? You can find some sample in both case in postgres' documentation. (if you use postgres 6.3.2 have same typos errors in documentation in postscript format, in html is right) Paulo System Manager jpbsilva@intervista.com.br