Link Search Menu Expand Document

REVERSE

Returns a string of the same size as the original string, with the elements in reverse order.

Syntax

REVERSE(<expression>)

Parameters

Parameter Description Supported Input Types
<expression> The string to be reversed. TEXT

Return Type

TEXT

Example

The following example returns the player’s username with the characters reversed:

SELECT
	REVERSE('esimpson') AS username; 

Returns: 'nospmise'