From: | Brian Modra <brian(at)zwartberg(dot)com> |
---|---|
To: | Iain Barnett <iainspeed(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: variables in ad hoc queries |
Date: | 2009-09-29 12:30:48 |
Message-ID: | 5a9699850909290530w2fbf34e6n6d3e118239958af0@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
2009/9/29 Iain Barnett <iainspeed(at)gmail(dot)com>:
> 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;
>
select myfunction from myfunction();
or, you can use the function in SQLs wherever you'd usually use an integer
> or is it just not possible?
>
> Iain
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
--
Brian Modra Land line: +27 23 5411 462
Mobile: +27 79 69 77 082
5 Jan Louw Str, Prince Albert, 6930
Postal: P.O. Box 2, Prince Albert 6930
South Africa
http://www.zwartberg.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Maximilian Tyrtania | 2009-09-29 12:36:57 | Re: Collation in ORDER BY not lexicographical |
Previous Message | Raymond O'Donnell | 2009-09-29 12:30:46 | Re: variables in ad hoc queries |