4

I'm interested in reversing a string in PostgreSQL.

3 Answers 3

7

PostgreSQL 9.1 and later includes a built-in function

 reverse(text)

http://www.postgresql.org/docs/current/static/functions-string.html

Sign up to request clarification or add additional context in comments.

Comments

2

Here you have reversing string function for PostreSQL:

http://a-kretschmer.de/diverses.shtml

Comments

-1

You can use reverse() as shown below:

SELECT reverse('hello'); -- olleh

1 Comment

This answer was already given 12 years ago stackoverflow.com/a/9281992/73226

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.