Subject | Re: [firebird-support] Can I use a Stored Procedure like a UDF in a Select? |
---|---|
Author | Dimitry Sibiryakov |
Post date | 2004-02-24T12:22:07Z |
On 24 Feb 2004 at 3:48, volklp30_nz wrote:
Why not simple
output_string = param1 || param2;
suspend;
contact.surname)) contact_name from contact;
SY, Dimitry Sibiryakov.
>Does anyone know if it is possible to use in Firebird a storedUse sub-selects.
>procedure like a UDF?
>create procedure concat (param1 varchar(50), param2 varchar(50))???? 8-O
> returns (output_string varchar(100))
>as
>begin
> for select (:param1 || :param2) from rdb$database
> into :output_string do suspend;
Why not simple
output_string = param1 || param2;
suspend;
>select concat(contact.firstname, contact.surname) contact_name fromselect (select output_string from concat(contact.firstname,
>contact;
contact.surname)) contact_name from contact;
SY, Dimitry Sibiryakov.