D/MySQL

[MySQL] REVERSE()

yeon.Biju 2020. 4. 20. 12:12

MySQL 문자열 함수와 연산자

 

REVERSE()

   -

 

REVERSE(str) 

의 형태

 

Returns the string str with the order of the characters reversed. 

 

mysql> SELECT REVERSE('abcd');
+-----------------+
| REVERSE('abcd') |
+-----------------+
| dcba            |
+-----------------+
1 row in set (0.00 sec)