摘要:
1、CONNECT1 Class.forName("org.postgresql.Driver");2 Connection connection = null;3 connection = DriverManager.getConnection(4 "jdbc:oracle:thin:@localhost:1521:mkyong","username","password");5 connection.close();JDBC & Statement2、STATAMENTThe “Statement” i 阅读全文
摘要:
参考网址:http://www.exampledepot.com/egs/java.sql/CallProcedure.htmlCalling a Stored Procedure in a DatabaseThis example demonstrates how to call stored procedures with IN, OUT, and IN/OUT parameters.COPYCallableStatement cs;try { // Call a procedure with no parameters cs = connection.prepareCall(" 阅读全文