Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 561 Bytes

File metadata and controls

23 lines (17 loc) · 561 Bytes
description
Returns the right-most substring. The function name must be enclosed in double quotes (“RIGHT”).

RIGHT

Syntax

RIGHT(string varchar, length int64) → varchar

  • string: String input parameter.
  • length: Number of characters on the right to return.

Examples

{% code title="RIGHT example" %}

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

{% endcode %}