Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> MySQL

ฟังก์ชันใดใน MySQL ที่ใช้สำหรับกลับทิศทางสตริง


ฟังก์ชัน REVERSE() ของ MySQL ใช้สำหรับกลับทิศทางสตริง ตัวอย่างต่อไปนี้จะสาธิต:

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)