MyBatis存储过程的使用

1 存储过程的内容

create or replace
PROCEDURE count_role(
p_role_name in varchar,
count_total out int,
exec_date out date)
IS
BEGIN
select count(*) into count_total from t_role where role_name like '%'||p_role_name||'%';
select sysdate into exec_date from dual;
END;

2 存储过程的参数
在这里插入图片描述
3 xml配置
在这里插入图片描述
4 Java接口
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/musi_m/article/details/89077713