Function Expressions
A function expression can return one or more values from
built-in SQL functions or from user-defined functions, as the following
diagram shows.
Function Expressions (1) (2) |--------+-| Algebraic Functions |-----------------------+------| | (3) | +-| CARDINALITY Function |----------------------+ | (4) | +-| SQLCODE Function |--------------------------+ | (5) | +-| DBINFO Function |---------------------------+ | (6) | +-| Encryption and Decryption Functions |-------+ | (7) | +-| Exponential and Logarithmic Functions |-----+ | (8) | +-| HEX Function |------------------------------+ | (9) | +-| Length Functions |--------------------------+ | (10) | +-| OLAP Window Functions |---------------------+ | (11) | +-| Security Label Support Functions |----------+ | (12) | +-| Smart-Large-Object Functions |--------------+ | (13) | +-| Time Functions |----------------------------+ | (14) | +-| Trigonometric Functions |-------------------+ | (15) | +-| String-Manipulation Functions |-------------+ | (16) | +-| IFX_ALLOW_NEWLINE Function |----------------+ | (17) | '-| User-Defined Functions |--------------------'
Notes:
- Informix® extension
- See Algebraic Functions
- See CARDINALITY Function
- See SQLCODE Function (SPL)
- See DBINFO Function
- See Encryption and decryption functions
- See Exponential and Logarithmic Functions
- See HEX Function
- See Length functions
- See OLAP window expressions
- See Security Label Support Functions
- See Smart-Large-Object Functions
- See Time Functions
- See Trigonometric Functions
- See String-Manipulation Functions
- See IFX_ALLOW_NEWLINE Function
- See User-Defined Functions
The following examples show function expressions:
EXTEND (call_dtime, YEAR TO SECOND)
HEX (LENGTH(123))
MDY (12, 7, 1900 + cur_yr)
TAN (radians)
DATE (365/2)
ABS (-32)
LENGTH ('abc') + LENGTH (pvar)
EXP (3)
HEX (customer_num)
MOD (10,3)