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!