JDBC可调用语句中的命名参数。
没有圆括号的命名参数。
如果支持命名参数,则系统返回true。
The system returns true if named parameters are supported. For example
接下来,注意frame的命名参数构造器。
这里不需要按照存储过程中的参数顺序来命名参数。
You do not need to name parameters in the same order as the arguments in the stored procedure.
首先,在Groovy中命名参数看起来是这样的。
清单13将使用命名参数特性的所有语句合并在一起。
Listing 13 consolidates all statements with the functionality of named parameter feature.
这段脚本在创建实例的时候提供了0个或者更多的命名参数。
The script creates instances with zero or more named parameters.
每个activeURI指定了一个服务以及任意数量的命名参数。
Each active URI specifies one service and any number of named parameters.
现在,您拥有了尝试这个特性的工具,并且了解了命名参数特性的优点。
Now you have the tools to try this for yourself and see the benefits of the named parameter feature.
UNIX实用程序getopt扫描位置参数以获得您指定的命名参数。
The getopt UNIX utility scans the positional parameters for the named arguments you specify.
在本例中,您将两个命名参数传递给HttpRequest的构造函数。
In this case you are passing in two named parameters to the constructor of HttpRequest.
清单7显示了CallableStatements中的命名参数的使用。
Listing 7 shows the USES of named parameter for CallableStatements.
本文最后列出了一个演示程序,该程序使用了IDS11服务器中的命名参数特性。
This article ended by listing a demo program that USES the named parameter feature with the IDS 11 server.
但是,命名参数则提供了更大的灵活性,它允许根据名称而不是顺序位置来设置参数。
But named parameter provides the flexibility to set the parameters by name, instead of by ordinal position.
这类函数始终需要调用者为其提供一个字符串来进行格式化,因此应当使用命名参数。
Such a function would always require the caller to supply the string to be formatted, so that parameter should be explicitly named.
在调用具有许多参数,而且其中一些参数有默认值的存储过程时,命名参数特别有用。
Named parameters are especially useful for calling stored procedures that have many arguments and some of those arguments have default values.
Function#argumentNames返回一个字符串数组,它代表函数的命名参数
Function#argumentNames returns an array of strings representing the function's named arguments
除了以上例子外,MTK还可以迁移使用了位置参数和命名参数、重载、递归之类的特性的过程。
In addition to these examples above, MTK migrates procedures that utilize features like positional and named parameters, overloading, and recursion.
然后描述了命名参数特性,并讨论了如何在CallableStatement中使用命名参数。
It then described the named parameter feature and discussed how that can be used in a CallableStatement.
命名参数使应用程序更加健壮,所以,即使存储过程中参数的顺序发生了改变,也不必修改应用程序。
Named parameter makes the application robust so that you don't need to change the application even if the sequence of the parameter in the stored procedure changes.
可以在同一个函数中同时使用命名参数和可变参数,只需要将可变参数的省略号放在命名参数列表之后。
Named and variadic parameters can be used in the same function, simply by placing the variadic ellipsis after the list of named parameters.
为了更进一步实现这个目标,Groovy的语法做了通融,允许我们使用没有圆括号括起来的命名参数。
To achieve this goal even further, the grammar of the language was tweaked to allow us to use named parameters without the surrounding parenthesis.
定义参数化的查询,这种查询可以以有序列表形式接收参数(按索引号引用参数),也可以采用按名称引用的命名参数。
Definition of parameterized queries that can take parameters as an ordered list, referred to by index Numbers, or as named parameters referred to by name.
我们可以使用上下文对象来获得调用的请求,寻找命名参数“operand”,获得其uri并对该资源发出一个子请求。
We could use the context object to obtain the calling request, look for the named parameter "operand", obtain its URI and issue a sub-request for that resource.
使用格式cstmt.setString("arg",name); 命名参数,其中 arg是相应的存储过程中的参数名称。
where arg is the name of the argument in the corresponding stored procedure.
我们会在《第6章-Scala高级面向对象编程》中的“CaseClass(案例类)”中看到另外一个使用命名参数和默认参数的例子。
We'll see another useful example of named and default arguments when we discuss case classes in the section called "case classes" in Chapter 6, Advanced Object-Oriented Programming in Scala.
窗口小部件选项都作为命名的参数传递。
parameters——检索命名的参数值。
应用推荐