REVERSE

Applies to: ✅ Data 360 SQL ✅ Tableau Hyper API

Returns a string with characters in reverse order.

Syntax

reverse(<string>)

Arguments

Required

  • <string>: The string to reverse.

Returns

Returns a text value with characters in reverse order.

Considerations

  • For multi-byte UTF-8 characters, individual characters are preserved and reversed.

Examples

Reverse String

Reverse the characters in a string.

SELECT reverse('abcde') AS result;

Returns 'edcba'.

Related Documentation