Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the reverse order of a string value.
Syntax
REVERSE ( expression )
Arguments
expression
Is a character expression or a column of type nvarchar(max).
Return Types
nvarchar(max)
Examples
SELECT
'abcdefg' AS x,
REVERSE('abcdefg') AS reversedX
FROM Input
x | reversedX |
---|---|
'abcdefg' | 'gfedcba' |