于mysql不能返回游标,那么使用mybatis框架在取

2025-05-07 18:42:30
推荐回答(1个)
回答1:

mysql存储过程是这样的
create procedure sp_get_user_count
(
out v_count int
)
begin
select count(1) into v_count from t_user;
select * from t_dept;
select * from t_class;
end;
由于mysql不能返回游标,那么使用mybatis框架在取的时候应该怎么取呢?怎样确定取出来的是t_dept的还是t_class?