- Notifications
You must be signed in to change notification settings - Fork689
RIGHT
Mathias Wulff edited this pageDec 15, 2025 ·3 revisions
RIGHT can be used as a string function or in a join clause.
Returns the right part of a character string with the specified number of characters.
Syntax:
RIGHT(character_expression, integer_expression)
Example:
SELECT RIGHT('abcdefg',2);-- Returns 'fg'
Syntax:
SELECT ...FROM table1RIGHT JOIN table2
© 2014-2026,Andrey Gershun &Mathias Rangel Wulff
Please help improve the documentation by opening a PR on thewiki repo