Skip to main content
Version: 24.3.x

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

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