variables in ad hoc queries - Mailing list pgsql-general

From Iain Barnett
Subject variables in ad hoc queries
Date
Msg-id A39A8D42-438F-48E5-84F9-F4190AAB2BCA@gmail.com
Whole thread Raw
Responses Re: variables in ad hoc queries  (Merlin Moncure <mmoncure@gmail.com>)
Re: variables in ad hoc queries  (Raymond O'Donnell <rod@iol.ie>)
Re: variables in ad hoc queries  (Brian Modra <brian@zwartberg.com>)
List pgsql-general
If I have a function that returns an integer, how can I use the
following code outside of a function block?

declare
_myint int;

begin
_myint := myfunction( );
end;


or is it just not possible?

Iain

pgsql-general by date:

Previous
From: György Vilmos
Date:
Subject: Performance evaluation of PostgreSQL's historic releases
Next
From: Mark Morgan Lloyd
Date:
Subject: Re: Delphi connection ?