Skip to content

Returns the string str with the order of the characters reversed.

func.reverse(<str>)
func.reverse('abc')
┌──────────────────────┐
│ func..reverse('abc') │
├──────────────────────┤
│ cba │
└──────────────────────┘
REVERSE(<str>)
ArgumentsDescription
<str>The string value.

VARCHAR

SELECT REVERSE('abc');
┌────────────────┐
REVERSE('abc') │
├────────────────┤
│ cba │
└────────────────┘