SQL 更新后 wso2 数据服务能否返回受影响的行? [英] Can wso2 data service return affected rows after SQL update?

查看:12
本文介绍了SQL 更新后 wso2 数据服务能否返回受影响的行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用 WSO2 数据服务连接数据库一段时间了.除了在 SQL 更新脚本后我仍然无法获得受影响的行之外,一切都很完美.

I have used WSO2 Data service to connect to DB for while. All are perfect except that I still couldn't get the affected rows after a SQL update script.

我已经通过向导一次又一次地尝试,但没有找到解决方案.

I've go through the wizard and try again and again, and found no solution.

有人知道怎么弄吗?

感谢您提前回复.

推荐答案

恐怕没有办法直接获取更新的行数,但可能的解决方法是将更新语句包装在存储过程,并从存储过程返回行数作为结果,可能作为 OUT 参数.

I'm afraid, there isn't a way to get the updated row count directly, but a possibly work-around would be to wrap your update statements in a stored procedure, and from the stored procedure return the row count as the result, maybe as an OUT parameter.

干杯,安佳娜.

这篇关于SQL 更新后 wso2 数据服务能否返回受影响的行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆