Re: How do I replace select ... into commands?

From: "Richard Huxton" <dev(at)archonet(dot)com>
To: "Richard Sydney-Smith" <richard(at)ibisaustralia(dot)com>
Cc: "Stephan Szabo" <sszabo(at)megazone(dot)bigpanda(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: How do I replace select ... into commands?
Date: 2003-09-12 07:08:22
Message-ID: 49234.192.168.1.32.1063350502.squirrel@mainbox.archonet.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> 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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Hall 2003-09-12 13:35:57 Re: how to call a function with row-type arg
Previous Message sad 2003-09-12 05:31:13 how to call a function with row-type arg