Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
从参数列表中返回所选参数。
ARGN( integer-expression, expression [ , ...] )
integer-expression 表达式列表中的参数位置。
expression 任何传递给函数的数据类型的表达式。提供的所有表达式都必须属于相同的数据类型。
使用 integer-expression 的值作为 n,从其余参数列表中返回第 n 个参数(从 1 开始)。
虽然表达式可以是任意数据类型,但它们必须具有相同的数据类型。整数表达式必须是从 1 到列表中的表达式数目,否则返回 NULL。多个表达式之间以逗号分隔。
以下语句返回值 6:
6
SELECT ARGN( 6, 1,2,3,4,5,6 );