先看例子: 1.delimiter $$2.drop procedure if exists`test_procedure` $$3.create procedure test_procedure(IN puser_id VARCHAR(30),IN pitem_id varchar(45),OUT result INT)4.begin 5.select id into result from train_tbl where user_id = puser_id;6.set result=10;…