{{theTime}}

Search This Blog

Total Pageviews

How to Call Stored Procedures using JDBC

CallableStatement stmt = null ;
ResultSet resSet =null ;
Try{
stmt = connection.prepareCall("{call sp_name}") ;
resSet = stmt.executeQuery() ;
//parse the resSet.
}catch(SQLException e) {
 // Log error or Retry the transaction
} finally {
 close the statement & Resultset.
}

No comments:

java.lang.NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport

SpringBoot Error: java.lang.NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field 'com.sun.tools.j...