Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回通过执行 SQL 语句所更改、插入或删除的行数。
Public ReadOnly Shadows Property RecordsAffected As Integer
public new int RecordsAffected {get;}
对于 SELECT 语句,此值为 -1。
更改、插入或删除的行数;如果没有任何行受到影响或语句失败,则值为 0;如果是 SELECT 语句,则值为 -1。