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