REVERSE

Reverse a string. This function returns the string with the order of its characters reversed.

Syntax

REVERSE(str)

Description

Returns the string str with the order of the characters reversed. If the input string is NULL, the function returns NULL.

Examples

SELECT REVERSE('desserts');
+---------------------+
| REVERSE('desserts') |
+---------------------+
| stressed            |
+---------------------+

This page is licensed: GPLv2, originally from fill_help_tables.sqlarrow-up-right

spinner

Last updated

Was this helpful?