w3resource
MySQL Tutorial

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)

Many of our valued users post comments along with piece of code. Disqus may, false positively, consider those piece of code as Bad or Starnge syntax and send those comments to spam automatically. Even if that happens, we will make sure those useful comments are taken out of spam and approved. It may take a couple of days for that though, but any useful comment will be brought to public view for sure. We regret if that happend to any user. You may write us directly regarding this to - w3resource[at]yahoo[dot]com.