Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ubjTu-004Xf9-0J for pgsql-general@arkaria.postgresql.org; Tue, 15 Jul 2025 17:30:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1ubjTr-003v1t-Uk for pgsql-general@arkaria.postgresql.org; Tue, 15 Jul 2025 17:30:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ubjTr-003v1l-Jt for pgsql-general@lists.postgresql.org; Tue, 15 Jul 2025 17:30:16 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1ubjTo-007RIo-2T for pgsql-general@postgresql.org; Tue, 15 Jul 2025 17:30:15 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 6A18A2A14D6 for ; Tue, 15 Jul 2025 10:30:11 -0700 (PDT) Date: Tue, 15 Jul 2025 10:30:11 -0700 (PDT) From: Rich Shepard Reply-To: Rich Shepard To: pgsql-general@postgresql.org Subject: Removing terminal period from varchar string in table column Message-ID: MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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