The mi_qual_nparams() accessor function
The mi_qual_nparams() function retrieves the number of parameters in the qualification expression.
Syntax
mi_integer mi_qual_nparams(MI_AM_QUAL_DESC *qualDesc);
- qualDesc
- Points to the qualification descriptor.
Usage
Use the mi_qual_nparams() function to retrieve the number of parameters in a qualification descriptor before you process the parameters. If the qualification descriptor contains multiple parameters that include one or more expressions, run the mi_qual_nparams() function on the nested qualification descriptors for the expressions.
Return values
The return integer indicates the number of parameters in the qualification expression. Out parameters are not counted in the return value.
Examples
For example, the qualification of a>5 has two parameters: the column a and the constant 5.
The qualification of udr(a,7,4)>5 has two parameters: the expression udr(a,7,4) and 5. The parameter descriptor for these two parameters contains a qualification descriptor for the expression udr(a,7,4). The qualification descriptor for udr(a,7,4) has three parameters: the column a, 7, and 4.