要执行sql脚本文件中的命令,最简单的方法是从ij工具中运行脚本文件。
The simplest technique to execute the commands in a SQL script file is to run the script file from within the ij tool.
用户能够在SQL Server Management Studio中编辑该脚本文件,之后就可以在其中运行脚本或是将其保存起来并通过向导加载并运行脚本文件。
You can edit this file in SQL Server Management Studio and run it from there or save it and use the wizard to load and run your file.
本系列的另一篇文章将显示如何让脚本文件变成可执行文件,但是在本文中我们通过sh或bash命令运行脚本。
Another article in this series will show you how to make the script file executable, but for now we'll stick to running scripts by using the sh or the bash command.
应用推荐