Received: from hotmail.com (f66.hotmail.com [207.82.251.206]) by hub.org (8.9.3/8.9.1) with SMTP id FAA91554 for ; Tue, 20 Apr 1999 05:18:09 -0400 (EDT) (envelope-from anna_langer@hotmail.com) Received: (qmail 48660 invoked by uid 0); 20 Apr 1999 09:18:12 -0000 Message-ID: <19990420091812.48659.qmail@hotmail.com> Received: from 195.242.55.62 by wy1lg.hotmail.com with HTTP; Tue, 20 Apr 1999 02:18:11 PDT X-Originating-IP: [195.242.55.62] From: "Anna Langer" To: pgsql-sql@postgresql.org Subject: Questions about embedded-sql! Date: Tue, 20 Apr 1999 02:18:11 PDT Mime-Version: 1.0 Content-type: text/plain Hi! We are having some problems with writing embedded-sql. We want to write like this but it doesn't work. test1 is our table in our database. 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); In the example that we have get this part from are they using CURSORS. Do you have to use them? Does anybody know where we can find some examples anbout embedded-sql in C or C++? Does anybody know where we can find anyting about CURSOR? We really need some help!!!! Anna and Maria ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com