ID EN
String Functions and Operators

REVERSE(str)

MySQL 8.4

Returns the string str with the order of the characters reversed, or NULL if str is NULL.

Syntax

MYSQL
SELECT REVERSE('abc');
'cba'

Examples

Example

This function is multibyte safe.

MYSQL
SELECT REVERSE('abc');
'cba'