Home >Database >Mysql Tutorial >Which function in MySQL is used to reverse a specific string?

Which function in MySQL is used to reverse a specific string?

王林
王林forward
2023-09-03 15:45:091371browse

MySQL 中的哪个函数用于反转特定字符串?

MySQL REVERSE() function can be used to reverse a string. The following example will demonstrate it -

mysql> Select REVERSE('Tutorialspoint');
+---------------------------+
| REVERSE('Tutorialspoint') |
+---------------------------+
| tniopslairotuT            |
+---------------------------+
1 row in set (0.00 sec)

mysql> Select Reverse('10-11-12');
+---------------------+
| Reverse('10-11-12') |
+---------------------+
| 21-11-01            |
+---------------------+
1 row in set (0.00 sec)

The above is the detailed content of Which function in MySQL is used to reverse a specific string?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete