简体   繁体   English

SQL加上运行多个查询

[英]SQL plus running multiple queries

I have 12 queries to run, but can not run at the same time. 我有12个查询要运行,但不能同时运行。 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. 每个查询都会写一个txt文件。 Thanks 谢谢

Seems to me like you just have to create a script and call that script: 在我看来,你只需要创建一个脚本并调用该脚本:

@query1.sql
@query2.sql
...

Or am I missing something? 或者我错过了什么?

将它们全部粘贴在1个文件中,并在GO语句之间进行操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM