JDBC可调用语句中的命名参数。
没有圆括号的命名参数。
如果使用未命名参数,sql语句类似于。
If you use unnamed parameters, your SQL statement looks something like this.
如果支持命名参数,则系统返回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.
命名参数也可以与带有附加参数的属性一起使用。
Named arguments can also be used with properties that have additional arguments.
自定义特性也可以定义可选参数,称之为命名参数。
Attributes can also define optional arguments, called named arguments.
使用active:URI模式可以调用带有命名参数的服务。
Services are called with named parameters using the active: URI scheme.The active scheme takes the form.
每个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.
在本例中,您将两个命名参数传递给HttpRequest的构造函数。
In this case you are passing in two named parameters to the constructor of HttpRequest.
我们还知道可以调用带有命名参数的服务,这些参数都被编码为uri地址。
We also have seen that services can be called with named parameters, all encoded as URI addresses.
清单7显示了CallableStatements中的命名参数的使用。
Listing 7 shows the USES of named parameter for CallableStatements.
我们还使用了一个命名参数来将关联数据和样本一起传递给累加器集。
We also use a named parameter to pass covariate data into the accumulator set along with the samples.
UNIX实用程序getopt扫描位置参数以获得您指定的命名参数。
The getopt UNIX utility scans the positional parameters for the named arguments you specify.
本文最后列出了一个演示程序,该程序使用了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.
动态查找以及命名参数和可选参数都有助于使针对COM的编程不再像今天这样痛苦。
Dynamic lookup as well as named and optional parameters both help making programming against COM less painful than today.
动态查找以及命名参数和可选参数都有助于使针对COM的编程不再像今天这样痛苦。
Dynamic lookup as well as named and optional parameters both help making programming against COM less painful than today.
应用推荐