Removing terminal period from varchar string in table column - Mailing list pgsql-general

From Rich Shepard
Subject Removing terminal period from varchar string in table column
Date
Msg-id e2d8ddc1-49d7-40da-ef92-c4523371a63@appl-ecosys.com
Whole thread Raw
Responses Re: Removing terminal period from varchar string in table column
Re: Removing terminal period from varchar string in table column
List pgsql-general
I want to remove the terminal period '.' from the varchar strings in the
'company_name' column in all rows with that period in the companies table.

I've looked at trim(), translate(), "substr(company_name 1,
length(compan_name) - 1)", and a couple of other functions and am unsure how
best to do this without corrupting the database table.

Advice needed.

TIA,

Rich




pgsql-general by date:

Previous
From: Greg Hennessy
Date:
Subject: Re: optimizing number of workers
Next
From: Merlin Moncure
Date:
Subject: Re: Performance of JSON type in postgres