1.创建存储过程:打开 sql-plus,输入
SQL> create or replace procedure 存储过程名
2 as
3 begin
4 execute immediate 'select * from aa';
5 end;
6 /
2.在jsp中调用存储过程:
Connection con=connBean.createConnect(userid); //建立连接
CallableStatement cstmt=con.prepareCall("{call 存储过程名 }");//注意空格
cstmt.execute();//执行存储过程
connBean.closeConnect(con);//关闭连接
如何创建oracle存储过程及在jsp中调用
最新推荐文章于 2016-01-04 10:47:02 发布