SQL Server 游标参考(语法等)

发布于 2024-07-23 00:27:59 字数 438 浏览 5 评论 0原文

我不经常使用 SQL Server 游标,但当我使用时,我总是必须查找语法和选项。

所以我想问,网络上最好的 SQL Server Cursor 参考是什么?

我正在寻找一个参考,它解释了所有(主要?)选项(IE FAST_FORWARD),并显示了如何使用它的快速片段。 (即如何通过游标实现循环以及检查 @@FETCH_STATUS 变量的良好实践。)

最好的问候,
Frank

快速更新:我正在寻找快速参考和足够详细的平衡以了解我的选择。 举个例子。 MSDN 是一个很好的参考指南,但它有太多细节。 理想情况下,参考应该简洁。

进一步更新:我仍在寻找来源。 如果有人发布了符合我的简洁标准的好来源,我会接受这个答案......

I don't use SQL Server Cursors often but when I do, I always have to look up the syntax and options.

So I wanted to ask, what is the best SQL Server Cursor reference on the web?.

I'm looking for a reference that explains all of the (major?) options (I.E. FAST_FORWARD) and also shows quick snippets of how to use it. (I.E. How to implement looping though a cursor and with a good practice for checking the @@FETCH_STATUS variable.)

Best Regards,
Frank

Quick Update: I'm looking for a balance of quick-reference but detailed enough to see my options. As an example. MSDN is a great reference guide but it has too much detail. The reference, ideally, should be concise.

Further update: I'm still looking for sources. If someone posts a good source that fits my criteria of concise, I will accept that answer...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

走野 2024-07-30 00:27:59

我总是使用 Management Studio 中内置的“Transact-SQL 参考”帮助。 我发现那里的所有示例都足以满足我的需要。

I always use the built in "Transact-SQL Reference" help within management studio. I find the examples on everything there to be more than enough for what I need.

油饼 2024-07-30 00:27:59

我将从 MSDN 光标帮助页面开始...

http:/ /msdn.microsoft.com/en-us/library/ms180169.aspx

I'd start out with the MSDN help page for cursors...

http://msdn.microsoft.com/en-us/library/ms180169.aspx

烟若柳尘 2024-07-30 00:27:59

如何在没有游标的情况下执行 SQL Server 逐行操作:
http://www.sql-server-performance.com/articles/ per/operations_no_cursors_p1.aspx

SQL Server 游标示例(带有游标替代方案):
http://www.mssqltips.com/tip.asp?tip=1599

How to Perform SQL Server Row-by-Row Operations Without Cursors:
http://www.sql-server-performance.com/articles/per/operations_no_cursors_p1.aspx

SQL Server Cursor Examples (with Cursor Alternatives):
http://www.mssqltips.com/tip.asp?tip=1599

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文