📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

REVERSE



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

Syntax

REVERSE(<str>)

Arguments

ArgumentsDescription
<str>The string value.

Return Type

VARCHAR

Examples

SELECT REVERSE('abc'); +----------------+ | REVERSE('abc') | +----------------+ | cba | +----------------+

Was this page helpful?