Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 1EEEB632CB9 for ; Fri, 2 Jul 2010 06:02:22 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 12925-08 for ; Fri, 2 Jul 2010 09:02:14 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moon.antora.ru (moon.antora.ru [89.111.189.180]) by mail.postgresql.org (Postfix) with ESMTP id 1FD2B632B68 for ; Fri, 2 Jul 2010 06:02:14 -0300 (ADT) Envelope-to: pgsql-sql@postgresql.org Received: from moon.inner.space ([10.1.1.5] helo=moon.antora.ru) by moon.antora.ru with esmtp (Exim 4.67) (envelope-from ) id 1OUc8R-0004pw-GS for pgsql-sql@postgresql.org; Fri, 02 Jul 2010 13:02:11 +0400 Received: from [192.168.1.6] [178.34.143.190] by moon.antora.ru (Axigen) with (DHE-RSA-AES256-SHA encrypted) ESMTPSA id 056BA2; Fri, 2 Jul 2010 13:02:11 +0400 Message-ID: <4C2DAB14.1040309@bankir.ru> Date: Fri, 02 Jul 2010 13:02:12 +0400 From: silly sad User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20100111 Thunderbird/3.0 MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Re: How do I remove selected words from text field? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.8 tagged_above=-5 required=5 tests=BAYES_50=0.8 X-Spam-Level: X-Archive-Number: 201007/4 X-Sequence-Number: 34317 On 07/02/10 03:25, Frank Bax wrote: > Osvaldo Kussama wrote: >> 2010/7/1 Frank Bax : >>> Create some tables; then add some data: >>> >>> create table t1 (i int, v varchar); >>> insert into t1 values(1,'A B C D'); >>> insert into t1 values(2,'B D E F'); >>> insert into t1 values(3,'G H I J'); >>> insert into t1 values(4,'E'); first of all rebuild the table. explode these strings by space char and put into another table for convenient use In other words construct proper data scheme PRIOR TO USE it.