匿名块如何模拟应用程序的运行。
PL/SQL过程/函数/匿名块
如何使用匿名块实现强大的即席报告。
可以从以下位置执行匿名块。
使用匿名块模拟应用程序运行
使用匿名块生成即席报告。
匿名块的概念。
清单5显示了如何在匿名块的帮助下创建一个即席报告。
Listing 5 shows how to create an ad-hoc report with the help of anonymous blocks.
匿名块如何为过程代码的测试、原型化和问题诊断提供便利。
How anonymous blocks can facilitate the process of testing, prototyping, and troubleshooting of procedural code.
顾名思义,匿名块没有名称,因此不能从其他对象引用它们。
As the name implies, anonymous blocks do not have a name, and for this reason they cannot be referenced from other objects.
使用CLPPlus中的execute命令也可以执行匿名块。
Anonymous blocks can also be executed using the execute command in CLPPlus.
如前所述,匿名块的最常见用法就是调用过程语言对象,通常是为了进行测试。
As mentioned, one of the most common USES of anonymous blocks is to invoke procedural language objects, typically for testing purposes.
该匿名块模拟为来自现有customer表的随机客户创建10个随机订单。
The anonymous block simulates the creation of 10 random orders for random customers from the existing customer table.
不过,您可以使用带有动态格式化选项和简单逻辑流程的匿名块来更快地实现该目的。
However, you can use anonymous blocks instead to do this quickly with dynamic formatting options and simple logic flow.
您可以轻松地将订单数改为从10到20,然后重新运行这个匿名块而不需要再进行编译。
It is easy to change the number of orders from 10 to 20 and then re-run this anonymous block without recompiling.
尽管匿名块是动态地构建的,但可以轻松地将它们储存为操作系统文件中的脚本,以重复执行。
Although built dynamically, anonymous blocks can be easily stored as scripts in the operating system files for repetitive execution.
这个优点让匿名块在诊断问题、原型化和测试过程代码时发挥重要作用,因为这些任务通常需要多个更改-执行过程。
That makes the anonymous blocks very useful when troubleshooting, prototyping, and testing procedural code, because these are tasks that usually require multiple change-and-execute runs.
匿名块的概念类似于unixshell脚本,它支持将几个手动输入的命令合并到一个组,然后作为一个步骤执行。
The concept of anonymous blocks is similar to UNIX shell scripts, which enable several manually entered commands to be grouped and executed as one step.
在类似匿名内部类的机制中使用代码块的一个优势是其简洁性。
One of the advantages of using code blocks over a similar mechanism like anonymous inner classes lies in its conciseness.
匿名类允许创建这样的对象,该对象能够捕获定义它们的一部分环境,但是对象和代码块不一样。
Anonymous classes let you create objects that capture part of the environment in which they were defined, but objects and blocks of code are not the same thing.
方法接收一个新的客户端对象,以及一个匿名方法,该方法持有的代码与正常使用using语句块包含的代码完全相同。
This method takes a new client object and an anonymous method that holds the same code a normal using block would contain.
每个块都是作为一个匿名函数体来执行的。
Each chunk is executed as the body of an anonymous function.
第一组闭合括弧划定一个匿名内部类的构造,第二组划定匿名内部类的实例初始化语句块。
The first set of enclosing braces delineates the construction of an anonymous inner class, and the second set delineates the instance initializer for the anonymous inner class.
IEnumerabl的函数将通常以一个“ReturnIterator”代码块开始,它是VB新匿名函数、多行函数语法的一种特例。
The IEnumerable function will generally begin with a "Return Iterator" block, which is a special case of VB's new anonymous, multi-line function syntax.
要将代码块传递为委托参数,创建匿名方法则是唯一的方法。
Creating anonymous methods is essentially a way to pass a code block as a delegate parameter.
匿名方法通常用于将代码块作为委托参数进行传递。
Anonymous methods are most frequently used to pass a code block as a delegate parameter.
如果一个块包含框里面有行框而没有块框,没有包含在行框里面的文字就会被包在匿名行框内,例如。
Any text that is directly contained inside a block container element (not inside an inline element) must be treated as an anonymous inline element.
你可以认为它是一个匿名代码块。
你可以认为它是一个匿名代码块。
应用推荐