August 20th, 2013, 02:56 AM
How to Reverse string?
In postgresql, I have string: "One,two,Three" and how to I Reverse it to "Three,Two,One"? hepl me, pleases.
August 20th, 2013, 03:03 AM
I smell a 1NF violation.
Why do you even have this strange string, and what do you need it for? If you store your data as comma-separated strings, you're doing it wrong (see the link above). As a rule of thumb: When you need complicated string operations, it's usually a warning sign telling you that your data model is incorrect or that you're doing things with PostgreSQL which you should be doing with your application.