SQL REVERSE

SQL REVERSE function is used to return reverse of a string. It’s supported by MS SQL Server, MySQL. Oracle supports it too, but maybe not in the documents.

SQL REVERSE function Syntax

REVERSE(string-expression)

SQL REVERSE function Example

SELECT REVERSE('SQL Tutorial')
-- The result will be: lairotuT LQS
SELECT REVERSE('Monday')
-- The result will be: yadnoM

Leave a Comment