Iterator iter = map.entrySet().iterator();
Connection con=DBConnection.getConnection();
while (iter.hasNext()) {
PreparedStatement pst=null;
String updatesql="update equipservice set service_is=1 where euipId=?";
Map.Entry entry = (Map.Entry) iter.next();
Object key = entry.getKey();
try {
pst.setInt(1, Integer.parseInt(key.toString()));
pst.executeUpdate();
} catch (NumberFormatException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
處理方法:
可以用這個sql
update A set cc=1 where aa in ('',''...) 后面那個括號里的
你用個循環(huán)拼個字符串就可以
但字符長度好像有限制
幾十跳可以 多了數(shù)據(jù)庫會報SQL語句太長的錯誤


下載 
下載
下載 
下載
下載
下載 

下載
下載
下載
下載
下載
下載
喜歡
頂
難過
囧
圍觀
無聊




王者榮耀賬號惡
MARVEL Strike
2017年10月手游
比官居一品好玩