navicate how to create a stored procedure

 
你打开"new query",然后直接在新的窗口里编写就可以了,给你个示例:

create procedure p_test
(
in i_num int,
in i_name varchar(50),
out o_result varchar(100)
)
begin
  select i_num as '输入参数1', i_name as '输入参数2';
  set o_result = '输入参数结果为:';
end;

你可能感兴趣的:(query)