w3resource

PostgreSQL REVERSE() function

REVERSE() function

The PostgreSQL reverse() function is used to arrange a string in reverse order.

Syntax:

reverse(<string>)

PostgreSQL Version: 9.3

Pictorial Presentation of PostgreSQL REVERSE() function

Pictorial presentation of postgresql reverse function

Example: PostgreSQL reverse() function:

In the example below, the string 'w3resource' have arranged in reverse order.

Code:

SELECT reverse('w3resource');

Sample Output:

  reverse
------------
 ecruoser3w
(1 row)

Previous: RIGHT function
Next: Date and Time Operators



Follow us on Facebook and Twitter for latest update.




We are closing our Disqus commenting system for some maintenanace issues. You may write to us at reach[at]yahoo[dot]com or visit us at Facebook