摘要: 操作大批量数据或复杂逻辑,考虑到执行效率和代码量的时候,存储过程和函数在数据库中是预编译好的,调用执行效率高// 调用过程 {call 过程名称(?,?,?)} public static void test1() throws Exception { Connection connection = request.getSession().connection(); String sql = "{call addmethod(?,?,?)}"; CallableStatement call = connection.prepareCall(sql); // 设置输入参数 阅读全文
posted @ 2014-03-24 20:53 莫名字 阅读(1697) 评论(0) 推荐(0) 编辑