reverse

Returns the specified string with characters listed in reverse order.

Syntax

reverse(expression | uchar_expr)

Parameters

Examples

Usage

  • 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.

See also Transact-SQL Users Guide.

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions

Any user can execute reverse.

Related reference
lower
upper