Home > Database > Mysql Tutorial > body text

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

王林
Release: 2023-09-03 15:45:09
forward
1230 people have browsed it

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)
Copy after login

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!