SQL CE(SqlCeCommand对象)中的ExecuteReader和ExecuteResultSet有什么区别? [英] What is the difference between ExecuteReader and ExecuteResultSet in SQL CE (SqlCeCommand object)?

查看:101
本文介绍了SQL CE(SqlCeCommand对象)中的ExecuteReader和ExecuteResultSet有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SQL CE(SqlCeCommand对象)中的ExecuteReader和ExecuteResultSet有什么区别?



我看到这里讨论/比较ExecuteNonQuery,ExecuteReader和ExecuteScalar,但是ExecuteResultset呢?

解决方案

结果集是可更新的,读者会在大多数情况下是你的默认选择,因为插入可以通过其他方式完成,但结果集可以做读者无法做到的事情。
http://msdn.microsoft.com/en-us/library/zcfxd5se(v = vs.100).aspx [ ^ ]

What is the difference between ExecuteReader and ExecuteResultSet in SQL CE (SqlCeCommand object)?

I see here discussion/comparisons of ExecuteNonQuery, ExecuteReader, and ExecuteScalar, but what about ExecuteResultset?

解决方案

A resultset is updateable, the reader would be your default choise in most cases as inserts could be done in other ways, but the resultset can do stuff the reader cannot
http://msdn.microsoft.com/en-us/library/zcfxd5se(v=vs.100).aspx[^]


这篇关于SQL CE(SqlCeCommand对象)中的ExecuteReader和ExecuteResultSet有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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