SQL Server 2000,查询是否按顺序执行?
我不确定我的问题是否与执行查询的工具有关。 (我一般使用查询分析器、Access 和 AQT)。
例如我有两个查询。
SELECT * FROM Table1
SELECT * FROM Table2
那么,查询是顺序执行还是同时执行?如果同时执行,如何让它们按顺序执行?
谢谢。
I am not sure if my question is related with the tool for executing the queries. (I am using Query Analyser, Access and AQT generally).
For example I have two queries.
SELECT * FROM Table1
SELECT * FROM Table2
So, do the queries executed sequentially or at the same time? If the are executed at the same time, how to make them execute sequentially?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它将依赖于工具,尽管我使用的每个交互式工具都以相同的方式(顺序)执行此操作,并且其他任何行为都将是极其不寻常的行为(希望该工具的文档突出显示)。在查询分析器中,它们将是连续的。
It'll be tool-dependent, although every interactive tool I've used does it the same way (sequentially) and anything else would be extremely unusual behavior (and hopefully highlighted by the tool's docs). In Query Analyzer, they'll be sequential.
查询分析器按顺序运行批处理中的每个语句。
鉴于它们都是 SELECT,它们是否按顺序运行实际上并不重要。
Query analyser runs each statement in a batch sequentially.
Given that they are both SELECT's it wouldn't actually matter whether they ran sequentially.