I\'m using Firebird Embedded v2.5. How to use procedures in query (SELECT) ?
My procedure:
SET TERM ^ ;
CREAT
You can't call stored procedures in Firebird's select list. You have to write the selectable procedure with desire result or write an UDF function to do what you have in fn_test
procedure.
For your case the simplest way is:
SELECT some_table_field_1,
5 AS zzz,
some_table_field_2,
( some_table_field_2 + 1) AS field_2_modified
FROM tb_test