Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 37580 invoked by uid 500); 12 Apr 2002 01:57:27 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 37569 invoked from network); 12 Apr 2002 01:57:26 -0000 Message-ID: From: Chris Warr To: cocoon-users@xml.apache.org Subject: RE: Esql row-results Date: Fri, 12 Apr 2002 12:02:19 +1000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N does 'select top 1 ....' do what you want. It just returns one row of the query results. Not sure if all dbs support it though. Very handy though. Chris. -----Original Message----- From: Sharat Koya [mailto:sxk99c@Cs.Nott.AC.UK] Sent: Friday, 12 April 2002 11:54 To: cocoon-users@xml.apache.org Subject: Esql row-results Hi, I have searched through the archives over the past hour and haven't found anything for this problem. What I want to do is execute a esql query that returns the results from a table but only selects the first row. eg.. normal esql namespace excluded... select * from action where due < current_timestamp what i want to be able to do is return only one action and ideally the first one it comes across. Once it does i can then set about processing the action and then delete from the database. any ideas? thanks for any time put in Sharat Koya --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: