How to SELECT a PROCEDURE in Firebird 2.5

前端 未结 8 1354
误落风尘
误落风尘 2021-01-11 23:21

I\'m using Firebird Embedded v2.5. How to use procedures in query (SELECT) ?

My procedure:

SET TERM ^ ;
CREAT         


        
8条回答
  •  天涯浪人
    2021-01-11 23:33

    Try this

    SET TERM ^ ;
    CREATE PROCEDURE FN_TEST( Y INTEGER )
    RETURNS( X INTEGER)
    AS
    BEGIN
    X = Y + 1;
    SUSPEND;
    END^
    SET TERM ; ^
    

提交回复
热议问题