> Stephen replied :
>
>> Something like the above should work, what's the exact function and
>> error
>> message and what version are you using?
>>
>>
> thanks Stephen.
>
> Exact function definition follows:
> PG Version is 7.3.1 on Windows 2000
> select "max"(seq_val) as m into lastrsn from fseqkeys where seq_key = tbl;
Slight change of syntax needed: select into recordvar max(seq_val) from ...
- Richard Huxton