标签: mysql-workbench
delimiter $$ create procedure fp10 ( in d varchar(30),out di int) begin select id into di from a1 where department = d; end $$ delimiter ; call fp10('IT',@di); select @di;