Skip to content

REVERSE

  • str: The string value for which reverse operation is to be conducted. The REVERSE() function in MySQL uses this parameter to reverse the sequence of characters in a provided string.
SELECT REVERSE('SQL');
LQS

The REVERSE function in MySQL is used to reverse a string. In the given example, it takes ‘SQL’ as an input and returns ‘LQS’.