RIGHT()

Available in: DSQL, PSQL

Added in: 2.1

Description

Returns the rightmost part of the argument string. The number of characters is given in the second argument.

Result type: VARCHAR or BLOB

Syntax

RIGHT (string, length)

Warning: When used on a BLOB, this function may need to load the entire object into memory. This may affect performance if huge BLOBs are involved.

Important: If the external function RIGHT is declared in your database, it will override the internal function. To make the internal function available, DROP or ALTER the external function (UDF).