X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 90BA05343A for ; Wed, 13 Apr 2005 01:56:18 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 80756-10 for ; Wed, 13 Apr 2005 04:56:17 +0000 (GMT) Received: from stark.xeocode.com (stark.xeocode.com [216.58.44.227]) by svr1.postgresql.org (Postfix) with ESMTP id C202C53415 for ; Wed, 13 Apr 2005 01:56:16 -0300 (ADT) Received: from localhost ([127.0.0.1] helo=stark.xeocode.com) by stark.xeocode.com with smtp (Exim 3.36 #1 (Debian)) id 1DLZv6-0001Oi-00; Wed, 13 Apr 2005 00:56:08 -0400 To: jspring@gmail.com Cc: pgsql-sql@postgresql.org Subject: Re: ignore single character in SELECT query? References: <1113360363.473080.314360@z14g2000cwz.googlegroups.com> In-Reply-To: <1113360363.473080.314360@z14g2000cwz.googlegroups.com> From: Greg Stark Organization: The Emacs Conspiracy; member since 1992 Date: 13 Apr 2005 00:56:08 -0400 Message-ID: <87oecjjmvr.fsf@stark.xeocode.com> Lines: 13 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.008 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/180 X-Sequence-Number: 21073 jspring@gmail.com writes: > So basically I want to ignore a single character (the apostrophe > character), anywhere in the middle of my search word, in selecting > results. How can I do this? WHERE replace(name,'''','') like '%dont%' Beware of quoting issues if "dont" is coming from user supplied inputs. -- greg