要执行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.
用户能够在SQLServerManagementStudio中编辑该脚本文件,之后就可以在其中运行脚本或是将其保存起来并通过向导加载并运行脚本文件。
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.
在运行脚本之前,需要编辑脚本文件头部的以下几行,如清单6所示。
Before running the script, you need to edit following lines in its header, as shown in Listing 6.
在运行脚本之前,需要编辑脚本文件头部的以下几行,如清单6所示。
Before running the script, you need to edit following lines in its header, as shown in Listing 6.
应用推荐