Listing 1 illustrates the contents of the required script file.
清单1展示了这个脚本文件的内容。
A script file is useful only if you can use it to execute the commands listed in the file.
脚本文件仅在可用于执行文件中列出的命令时才有用。
In this case, you supply the name of the script file as a command-line argument to the ij tool.
在这种情况下,提供脚本文件名作为ij工具的命令行参数。
The next section discusses how you can execute a Derby script file directly from a command line.
下一节将讨论如何从命令行直接执行Derby脚本文件。
Listing 3 demonstrates the first method for executing a script file directly from a command line.
清单3展示了直接从命令行执行脚本文件的第一种方法。
This is the exact statement used in the SQL script file you executed at the start of this article.
这正是在本文开始处执行的sql脚本文件中使用的语句。
It enables you to go through the wizard once and record the user options and data in an Ant script file.
该功能让您使用一次向导,并且在ant脚本文件中记录下用户选项和数据。
We edited the SQL script file and changed the first two SQL statements to indicate the desired database name
我们编辑了SQL脚本文件,并更改了前两个 SQL语句,以指示希望使用的数据库名称
Script packages can be as simple as a single script file or as complex as containing an entirely new product.
脚本包可以简单到只包含一个脚本文件,也可以复杂到包含一个全新的产品。
From your notepad where you have saved all the generated DDLs, copy and paste into the BankingDDL script file.
将所有生成的DDL从notepad中复制并粘贴到bankingddl脚本文件中。
The CachedScript class (see Listing 8) takes a script file and recompiles it only when the source code is modified.
CachedScript类(参见清单8)接受一个脚本文件并只有当源代码有修改时才会进行重编译。
Open the change management script file, GSDB.changexml, by double-clicking on it in the Data Project Explorer view.
打开变更管理脚本文件GSDB .changexml,方法是在DataProjectExplorer视图中双击它。
To developers familiar with other GUI toolkits, it's not obvious how to get the path for the selected SQL script file.
对于熟悉其他GUI工具包的开发人员来说,如何获取被选中sql脚本文件的路径并不是一件显而易见的事情。
The simplest technique to execute the commands in a SQL script file is to run the script file from within the ij tool.
要执行sql脚本文件中的命令,最简单的方法是从ij工具中运行脚本文件。
For now, you'll only work with the create script file; the insert script file will be used at the end of this article.
现在,您将只使用create脚本文件;insert脚本文件将在本文的最后使用。
There is yet another way to run a Derby script: redirect the standard input of the ij tool to read from the script file.
还有另一种方法来运行Derby脚本:重定向ij工具的标准输入以从脚本文件中读取。
You do so by using the run command, which takes a single argument: the name of the script file enclosed in single quotes.
通过使用run命令可实现该操作,该命令接受单个参数:单引号括起的脚本文件名。
The newly created change management script file is automatically opened in the editor for the DBA to begin the change process.
新创建的变更管理脚本文件将在编辑器中自动打开,以便于 DBA开始执行更改。
Note: It may be much easier to get this part to work if you create a script file (batch or shell) and run the commands from the script.
注意:如果你创建一个脚本文件(批处理或者命令行)并且从脚本执行命令来做这项工作,可能容易得多。
This display may seem awkward, but the run command executes your script file as if you were typing the commands directly into the ij tool.
这种显示可能有些笨拙,但run命令会执行您的脚本文件,就像您直接将命令键入ij工具中一样。
In the Plugin config change script field, you can enter the name of a script file that you might want run once the generation is complete.
在Pluginconfigchangescript字段中,可以输入您希望在完成生成后运行的脚本文件的名称。
By placing SQL commands in a script file, you gain the additional benefit of being able to execute the commands as many times as necessary.
通过将SQL命令放置在脚本文件中,您将获得能够根据需要多次执行命令的附加好处。
These lines are SQL comments; you should use them to provide a basic description of the purpose of each major component within the script file.
这些行是SQL注释;您应该使用它们来提供脚本文件中每个主要组件的用途的基本描述。
Therefore, to verify that the script was executed, your script file should contain a simple test that looks something like that shown in Listing 7.
因此,要想检查是否执行脚本,脚本文件应该包含与清单7相似的简单测试。
Before writing a PHP script file, using the Native DB2 and Cloudscape PHP extension, first ensure that the extension has been activated within our PHP environment.
在编写使用本机db2和CloudscapePHP扩展的php脚本文件之前,首先要确保在我们的PHP环境中激活了该扩展。
When you select the different mappings, the agent name generated in the Ant script file will also be different, as shown in the previous three Ant script listings.
当您选择不同的映射时,ant脚本文件中生成的代理名称也将不同,如先前三个ant脚本清单中那样。
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.
本系列的另一篇文章将显示如何让脚本文件变成可执行文件,但是在本文中我们通过sh或bash命令运行脚本。
To show you how to create a script to list all resources (such as JDBC drivers) for each server, the steps below describe the procedure for generating commands for a script file.
为了向您介绍如何创建列出每台服务器的所有资源(如jdbc驱动程序)的脚本,下面的步骤描述了为脚本文件生成命令的过程。
To run the commands in this script file you can use any of the three methods discussed in the previous article in this series or follow along with the commands shown in Listing 1.
要运行该脚本文件中的命令,可以使用本系列前一篇文章中讨论的三种方法之一,或者使用清单1所示的命令。
If a script invokes the functions or class methods of other Jython modules, use the execfile function to load a Jython script from another Jython script file. Listing 3 shows an example.
如果某个脚本调用其他Jython模块的函数或类方法,则使用execfile函数加载来自其他jython脚本文件的jython脚本。
应用推荐