摘要:
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 阅读全文
posted @ 2012-04-15 18:04
Coldest Winter
阅读(596)
评论(0)
推荐(0)
摘要:
参考网址: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(" 阅读全文
posted @ 2012-04-15 14:31
Coldest Winter
阅读(431)
评论(0)
推荐(0)
浙公网安备 33010602011771号