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.

Examples

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

This page is licensed: GPLv2, originally from fill_help_tables.sql

Last updated

Was this helpful?