当前位置: 技术问答>java相关
马上给100分!谁能解决这个简单的问题:Can't start manual transaction mode because there are cloned connections.先给20分
来源: 互联网 发布时间:2015-10-31
本文导语: [Microsoft][SQLServer 2000 Driver for JDBC] Can't start manual transaction mode because there are cloned connections. ------------------------------------------------------------------------- public void delete(String[] ids) throws SQLException { Connectio...
[Microsoft][SQLServer 2000 Driver for JDBC]
Can't start manual transaction mode because there are cloned connections.
-------------------------------------------------------------------------
public void delete(String[] ids) throws SQLException {
Connection con=dbconnMgr.getConnection("connpool");
con.setAutoCommit(false);
String sql="delete from operator where o_id=?";
PreparedStatement pstmt=con.prepareStatement(sql);
try{
for(int i=0;i
Can't start manual transaction mode because there are cloned connections.
-------------------------------------------------------------------------
public void delete(String[] ids) throws SQLException {
Connection con=dbconnMgr.getConnection("connpool");
con.setAutoCommit(false);
String sql="delete from operator where o_id=?";
PreparedStatement pstmt=con.prepareStatement(sql);
try{
for(int i=0;i