package com.rxtc.bi.app.crm.rep.dao.impl; * Title:在hibernate中用存储过程 * 只是要绕过hibernate 调用jdbc API,当然事务还是由hibernate业管理:
|
假如我们创建了以下存储过程:
create or replace procedure batchUpdateCustomer(p_age in number) as begin update CUSTOMERS set AGE=AGE+1 where AGE> p_age; end; |
存储过程中有一个参数p_age,代表客户的年龄,应用程序可按照以下方式调用存储过程:
责任编辑:cyth