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)

Previous: RIGHT function
Next: Date and Time Operators



New Content: Composer: Dependency manager for PHP, R Programming