Categories: Binary, String

REVERSE

Reverses the order of characters in a string.

Syntax

REVERSE(expression varchar) → varchar

  • expression: The string to reverse.

Examples

SELECT REVERSE('Hello, world!');
-- !dlrow ,olleH