首页 > 文章列表 > MySQL 中的哪个函数用于反转特定字符串?

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

146 2023-09-01

MySQL REVERSE() 函数可用于反转字符串。下面的例子将演示它 -

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)