Firebird Documentation IndexFirebird 2.1 Language Ref. UpdateExternal functions (UDFs) → sright
Firebird Home Firebird Home Prev: srandFirebird Documentation IndexUp: External functions (UDFs)Next: string2blob

sright

Library: fbudf

Added in: 1.0 (Win), 1.5 (Linux)

Better alternative: Internal function RIGHT()

Description: Returns the rightmost numchars characters of the input string. Only works with 1-byte character sets.

Result type: VARCHAR(100)

Syntax: 

sright (str, numchars)

Declaration: 

DECLARE EXTERNAL FUNCTION sright
   VARCHAR(100) BY DESCRIPTOR, SMALLINT,
   VARCHAR(100) BY DESCRIPTOR RETURNS PARAMETER 3
   ENTRY_POINT 'right' MODULE_NAME 'fbudf'
Prev: srandFirebird Documentation IndexUp: External functions (UDFs)Next: string2blob
Firebird Documentation IndexFirebird 2.1 Language Ref. UpdateExternal functions (UDFs) → sright