为什么提示缺少SET关键字
Statement mystmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
mystmt.executeUpdate( "UPDATE bus.manager " + "SET times=times+1 " + "where id= ' "+name+ " ' ");
------解决方案--------------------改成下面的试试:
mystmt.executeUpdate( "UPDATE bus.manager " + " SET times=times+1 " + "where id= ' "+name+ " ' ");
------解决方案--------------------加空格!