REVERSE() in MySQL — How It Works

What the MySQL REVERSE() function does, with an example.

Published October 19, 2026

REVERSE() reverses the characters in a string.

Key points

  • Part of standard SQL functions available in MySQL for working with text/strings

Example

SELECT REVERSE('hello');  -- 'olleh'
More SQL articles