select * from MyStudent where FGender=@gender and FAge=@age 执行存储过程: Situation One(调用默认的参数):
基于6个网页-相关网页
在调用具有许多参数,而且其中一些参数有默认值的存储过程时,命名参数特别有用。
Named parameters are especially useful for calling stored procedures that have many arguments and some of those arguments have default values.
默认情况下,此选项是禁用的,并且将各参数对象的副本传递给调用的EJB方法。
By default, this option is disabled and a copy of each parameter object is made and passed to the invoked EJB method.
默认参数使程序获得了更高的灵活性,因为在您调用函数时,可以包含两个输入参数,也可以仅包含一个输入参数,甚至可以一个参数都不包含。
A default parameter provides greater flexibility to a program because you can include neither, one, or both of the input parameters when you call the function.
应用推荐