RIGHT

Returns the right-most substring. The function name must be enclosed in double quotes (“RIGHT”).

Syntax

RIGHT(string varchar, length int64) → varchar

  • string: String input parameter.

  • length: Number of characters on the right to return.

Examples

RIGHT example
SELECT "RIGHT"('Spice - SQL Engine', 6)
-- Engine

Last updated