利用JDBC取得Connection後,可以利用以下幾種方式來執行資料庫的Store Procedure
1.沒參數
CallableStatement cs;
try {
// 設定 CallableStatement
cs = connection.prepareCall("{call myproc}");
// 執行 CallableStatement
cs.execute();
} catch (SQLException e) {
}
2.有IN參數
Read More