How can it be possible to invert a string in MySQL?

MySQLMySQLi Database

MySQL REVERSE() function make it possible to invert a string. Its syntax is as follows −

Syntax

REVERSE(STR)

Here, STR is a string which we want to invert.

Example

mysql> Select REVERSE('MySQL');
+------------------+
| REVERSE('MySQL') |
+------------------+
| LQSyM            |
+------------------+
1 row in set (0.05 sec)
raja
Published on 20-Feb-2018 11:24:43
Advertisements