[英]java preparedstatement executeUpdate return wrong affected rows
我使用spring jdbctemplate更新一些行,但是我得到了這個日志消息。兩個完全相同的sql返回不同的受影響行。第二次更新操作無法返回0個受影響的行。我只是無法弄清楚。
2015-12-03 12:37:37 [INFO] [qtp683362635-1187] c.t.s.c.i.d.IDGJdbcDao - update:
update JCSZ..T_IDG
set N_VALUE = ?
where C_BusinessID = ?
and C_ComID = ?
and C_RateID = ?
and N_TYPE = ?
and N_ConfType = ?
受影響的行:373行
2015-12-03 12:37:38 [INFO] [qtp683362635-746] c.t.s.c.i.d.IDGJdbcDao - update:
update JCSZ..T_IDG
set N_VALUE = ?
where C_BusinessID = ?
and C_ComID = ?
and C_RateID = ?
and N_TYPE = ?
and N_ConfType = ?
受影響的行:0行
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.