*存储过程分为带参数和不带参数;参数又分为输入参数、输出参数以及既是输入参数又是输出参数。*
JDBC调用Oracle存储过程的代码如下:
import java.sql.*;
public class OracleProcedure {
public static void main(String[] args) throws Exception {
Class.forName("oracle.jdbc.OracleDriver");//加载驱动
Connection con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl", "scott", "oracle"