CREATE PROCEDURE `Proc_UpdEmployeeDetails`( OUT userid integer, IN sal INTEGER)
BEGIN
UPDATE employee
SET salary=sal
WHERE id = userid;
END
答案 0 :(得分:0)
我认为您希望两个输入参数都标记为IN
,假设您只想更新employee
表而不返回值。
CREATE PROCEDURE `Proc_UpdEmployeeDetails`(IN userid integer, IN sal INTEGER)
BEGIN
UPDATE employee
SET salary=sal
WHERE id = userid;
END