I'm interested in reversing a string in PostgreSQL.
3 Answers
PostgreSQL 9.1 and later includes a built-in function
reverse(text)
http://www.postgresql.org/docs/current/static/functions-string.html
Comments
Here you have reversing string function for PostreSQL:
Comments
You can use reverse() as shown below:
SELECT reverse('hello'); -- olleh
1 Comment
Martin Smith
This answer was already given 12 years ago stackoverflow.com/a/9281992/73226