Return-Path: postman 
Delivery-Date: Tue, 14 Sep 93 08:22:44 PDT
Return-Path: postman
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA07202; Tue, 14 Sep 93 08:18:36 -0700
Resent-From: postman (POSTGRES mailing list)
Resent-Message-Id: <9309141518.AA07202@postgres.Berkeley.EDU>
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: dfleenor@nettech.com
Received: from ncnoc.concert.net by postgres.Berkeley.EDU (5.61/1.29)
	id AA07194; Tue, 14 Sep 93 08:18:28 -0700
Received: from nettech1.nettech.com by ncnoc.concert.net (5.65/tas-concert/aug93)
	id AA13165; Tue, 14 Sep 93 11:18:46 -0400
Received: by nettech1.nettech.com (AIX 3.2/UCB 5.64/4.03)
          id AA38870; Tue, 14 Sep 1993 11:09:03 -0400
From: dfleenor@nettech.com (super dave?)
Message-Id: <9309141509.AA38870@nettech1.nettech.com>
Subject: Query
To: postgres@postgres.berkeley.edu
Date: Tue, 14 Sep 1993 11:09:01 -0500 (EDT)
X-Mailer: ELM [version 2.4 PL21]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 562       
Resent-To: postgres-dist
Resent-Date: Tue, 14 Sep 93 08:18:34 PDT

I am trying to retrieve stuff from a database by using libpq. I typed in the
example from the manual (p. 120), and it works fine. The statement:

PQexec ("retrieve portal eportal (EMP.all)") 

in the C program works fine, but I need to retrieve attributes based on a
comparison, and the statement

PQexec ("retrieve portal eportal (EMP.all) where EMP.whatever = etc...

doesn't seem to be the correct syntax. There doesn't seem to be a clear
example of how to do this in the book. If anyone understands what I'm trying
to convey, some help would be appreciated.
