On this page

    Categories: String

    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

    SELECT "RIGHT"('Dremio - SQL Engine', 6)
    -- Engine