Takes one argument as an input of type BINARY or STRING and returns the specified string with characters listed in reverse order.
REVERSE ( expression | uchar_expr )
expression is a character or binary-type column name, variable, or constant expression of CHAR, VARCHAR, NCHAR, NVARCHAR, BINARY, or VARBINARY type.
select reverse("abcd") ---- dcba
select reverse(0x12345000) ---------- 0x00503412
REVERSE, a string function, returns the reverse of expression.
If expression is NULL, reverse returns NULL.
Surrogate pairs are treated as indivisible and are not reversed.
Any user can execute REVERSE.
ANSI SQL – Compliance level: Transact-SQL extension
Functions “LOWER function [String]” and “UPPER function [String]”.
For general information about string functions, see “String functions”.