ssh框架中调用mysql存储过程的方式

来源:互联网 发布:基于云计算的oracle 编辑:程序博客网 时间:2024/05/21 21:01

//得到connection对象

Connection connection = hibernateDaoSysService.getConnection();

//调用存储过程

CallableStatement prepareCall = connection.prepareCall("{call statisticalMonthDetail(?)}");

//往存储过程中传入参数

prepareCall.setString(1, date);

//执行存储过程

prepareCall.execute();

0 0