Search Postgresql Archives

Re: Postgresql: Remove last char in text-field if the column ends with minus sign

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/16/2010 06:52 AM, Sarang Dave wrote:

Hello sir,

I want to remove the last char in a column if it ends with the minus sign. How could I do this in postgresql?


regexp_replace(your_field, '-+$', '');

Cheers,
Steve


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux