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 => ?)
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 => ?)
转载于:https://www.cnblogs.com/omygod/archive/2013/04/11/3015559.html