public static void aa(String jobNo) throws Exception {
String sql = "CALL databaseName.procedureName(?)";
Connection conn = null;
try {
conn = getConnection();
CallableStatement cs = conn.prepareCall(sql);
cs.setString(1, jobNo);
cs.execute();
} catch (Exception ex) {
ex.printStackTrace();
} finally {
if (conn != null) {
conn.close();
}
}
}
java程序中调用数据库中的存储过程
最新推荐文章于 2021-02-27 21:30:05 发布