本文介绍了ExecuteNonQuery返回什么int值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果 update insert delete 成功,则 ExecuteNonQuery 返回什么值?失败了吗?

What values ExecuteNonQuery returns if update, insert, delete are success, at the same time when they were failed?

推荐答案

ExecuteNonQuery 返回受影响的行数.

ExecuteNonQuery

 For UPDATE, INSERT, and DELETE statements, the return value is the number of 
rows affected by the command.

这篇关于ExecuteNonQuery返回什么int值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-24 15:50