Re: Removing terminal period from varchar string in table column

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Removing terminal period from varchar string in table column
Date: 2025-07-15 18:02:14
Message-ID: 512c9d0-442d-5bb4-bd26-6b7d222c8235@appl-ecosys.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 15 Jul 2025, Jeff Ross wrote:

> How about
>
> test:
>     select company_name, replace(company_name,'.','') from companies;
>
> update:
>     update companies set company_name = replace(company_name,'.','') where
> company_name like '%.';

Jeff,

These contain the table and column names I didn't see in web page examples.
Using update looks better to me.

Many thanks,

Rich

In response to

Browse pgsql-general by date

  From Date Subject
Next Message DINESH NAIR 2025-07-15 18:13:44 Re: Query regarding support of test_decoding and PGReplicationStream with Standby Logical Replication
Previous Message Rich Shepard 2025-07-15 17:59:27 Re: Removing terminal period from varchar string in table column