SQL 加上运行多个查询
我有 12 个查询要运行,但不能同时运行。我想开始第一个查询,然后一旦完成,下一个查询就开始,当它完成时,第三个查询开始,依此类推。希望这是自动的。每个查询都会写入一个 txt 文件。谢谢
I have 12 queries to run, but can not run at the same time. I would like to start the first query, then as soon as it completes the next query begins, when it completes the third query starts and so on. Want this to be automatic. Each query writes a txt file. Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在我看来,你只需要创建一个脚本并调用该脚本:
或者我错过了什么?
Seems to me like you just have to create a script and call that script:
Or am I missing something?
将它们全部粘贴到 1 个文件中,并在文件之间添加 GO 语句即可解决问题。
Paste them all in 1 file with a GO statement between should do the trick.