From: | Michael Meskes <meskes(at)postgresql(dot)org> |
---|---|
To: | ganesanm <ganesanm(at)technauts(dot)com> |
Cc: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | Re: How do I select nth row from a table |
Date: | 2000-05-01 14:11:30 |
Message-ID: | 20000501161130.A3128@fam-meskes.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)Fam-Meskes(dot)De | Use PostgreSQL!
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Meskes | 2000-05-01 14:48:29 | Re: How do I select nth row from a table |
Previous Message | Constantin Teodorescu | 2000-05-01 11:47:13 | Re: [pgaccess] huge forms |