[英]Get the number of affected rows in SQLJ update statement
I am executing an update statement through SQLJ: 我正在通过SQLJ执行更新语句:
#sql [connCtx] {
UPDATE
MYTABLE
SET
MYCOLUMN = null
WHERE
MYCOLUMN IS NOT NULL
};
Is there a way to retrieve the number of affected rows? 有没有办法检索受影响的行数?
没有您的java代码,我认为这是正确的方法:
System.out.println(exec_context.getUpdateCount( ));
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.