RIGHT

RIGHT(string, int)

Parameters

  • string - an argument.
  • int - a number of characters to extract.

Description

Returns the rightmost number of characters.

Examples

Get 3 last letters of Players' names:

SELECT RIGHT(NAME, 3) FROM Players;

Updated about 5 years ago