String sqlDet = "UPDATE BO_ACT_DPM_MONTHDMDSUMDET SET MONTHDMD = ?,MONTHZONE = ?," + "MONTHKA = ?,MONTHKASCHE = ?,MONTHDIRSALE = ?,MONTHEC = ?,MONTHADJUSTRATIO = ?," + "MONTHADJUST = ?,MONTHSPEC = ? " + "WHERE CAMPAIGN = ? AND DEMANDID = ? AND BINDID = ?"; String colunm = "MONTHDMD,MONTHZONE," + "MONTHKA,MONTHKASCHE,MONTHDIRSALE,MONTHEC,MONTHADJUSTRATIO," + "MONTHADJUST,MONTHSPEC," + "CAMPAIGN,DEMANDID,BINDID"; //int[] resultBak = Db.batch(sqlBak, colunm, updateListBak, 1000); int[] resultDet = Db.batch(sqlDet, colunm, updateListDet, 1000 //int[] 返回的都是-2,我现在只有一条数据,update不成功,初步估计是占位符 对不上。有没有办法把带参数的完整sql打印出来观察,因为已经打断点进去batch方法,跟踪过好像是条件都对应上的。 谢谢指导
项目:JFinal