Java 调用Oracle的存储过程
1、创建存储过程的语句: 1、表结构: ①:create table TESTA ( A_ID VARCHAR2(10) not null, A_NAME VARCHAR2(10) ) 2、存储过程: ①:create or replace procedure proc_testA(para1 in varchar2, para2 in varchar2) as begin insert into testA(a_id, a_Name) values (para1, para2); end proc_testA; ②:create or replace procedure proc_testA2(para1 in varchar2, para2 out varchar2) as begin select a_name into para2 from testA where a_id = para1; end proc_testA2; ③:create or replace procedure proc_testA3( p_cursor out pack_testa.testa_cursor ) is begin open p_cursor for select * from Testa; end proc_testa3; 3、Package: ①:create or replace