CREATE PROCEDURE MYPROC(IN P1 INT, IN P2 INT DEFAULT 1, OUT out1 DUMMY) AS
BEGIN
out1 = SELECT :P1 + :P2 AS DUMMY FROM DUMMY;
END;
调用方式:
CALL MYPROC(3, 4,?);
or
CALL MYPROC(P1 => 3, out1 => ?)
关于SAP HANA存储过程参数使用默认值的方式
于 2017-06-02 14:11:58 首次发布