代码示例:
1、IN输入参数:
delimiter // create PROCEDURE proc1(IN sid int) begin select * from student where id = sid; end // delimiter ;
#调用存储过程 call proc1(2);
代码示例:
delimiter // create PROCEDURE proc1(IN sid int) begin select * from student where id = sid; end // delimiter ;
#调用存储过程 call proc1(2);