Skip to main content
Returns the input string with all characters in reverse order.

Syntax

REVERSE(<expression>)

Parameters

ParameterDescriptionSupported Input Types
<expression>The string to be reversed.TEXT

Return Type

TEXT

Examples

Reverse a simple text string:
SELECT REVERSE('esimpson');
reverse text
nospmise

Rows: 1Execution time: 5.57ms

Reverse a string containing emoji characters:
SELECT REVERSE('👋🌍');
reverse text
🌍👋

Rows: 1Execution time: 6.71ms