Re: How do I select nth row from a table - Mailing list pgsql-interfaces

From Michael Meskes
Subject Re: How do I select nth row from a table
Date
Msg-id 20000501161130.A3128@fam-meskes.de
Whole thread Raw
In response to How do I select nth row from a table  (ganesanm <ganesanm@technauts.com>)
List pgsql-interfaces
On Wed, Apr 19, 2000 at 05:18:01PM -0400, ganesanm wrote:
> The following query works well in non-embedded  sql
> 
>         select  user_name
>         from mail_file_dtl
>         where grp_name = 'grp_1'
>         order by user_name  limit 1 offset 5;

It should work as well under ECPG.

> I tried  the following but ecpg returned error on the last
> line.

Sure. First of all there must not be an equal sign. And second ECPG does not
accept a variable here. 

> Can a variable name be used in the offset option to pass
> the value ?

Right now: No. But surely this should be done.

Michael
-- 
Michael Meskes                         | Go SF 49ers!
Th.-Heuss-Str. 61, D-41812 Erkelenz    | Go Rhein Fire!
Tel.: (+49) 2431/72651                 | Use Debian GNU/Linux!
Email: Michael@Fam-Meskes.De           | Use PostgreSQL!


pgsql-interfaces by date:

Previous
From: Constantin Teodorescu
Date:
Subject: Re: [pgaccess] huge forms
Next
From: Kovacs Zoltan Sandor
Date:
Subject: Re: Zeos download (was making winodbc driver better?)