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 Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>