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 E51205287E for ; Fri, 5 Aug 2005 07:43:26 -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 66479-09 for ; Fri, 5 Aug 2005 10:43:23 +0000 (GMT) Received: from sapo.pt (relay3.ptmail.sapo.pt [212.55.154.23]) by svr1.postgresql.org (Postfix) with SMTP id 740D152986 for ; Fri, 5 Aug 2005 07:43:21 -0300 (ADT) Received: (qmail 27492 invoked from network); 5 Aug 2005 10:43:23 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.205) by relay3 with SMTP; 5 Aug 2005 10:43:23 -0000 Received: (qmail 10128 invoked from network); 5 Aug 2005 10:43:23 -0000 X-AntiVirus: PTMail-AV 0.3-0.86.2 Received: from unknown (HELO hmv02) ([82.155.148.190]) (envelope-sender ) by mta10 (qmail-ldap-1.03) with SMTP for ; 5 Aug 2005 10:43:23 -0000 Message-ID: <008601c599aa$7f821a10$580bfea9@hmv02> From: =?iso-8859-1?Q?H=E9lder_M._Vieira?= To: References: <42F33585.1090706@rkcomputing.co.uk> Subject: Re: 'select where' using multiple columns. Date: Fri, 5 Aug 2005 11:43:19 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.8 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, FORGED_RCVD_HELO X-Spam-Level: * X-Archive-Number: 200508/24 X-Sequence-Number: 22252 > Is there a way to do something like a > 'select * where forename_1,forename_2,surname like '%String%' ?? You could try the following, but it won't get a medal for performance... SELECT * FROM xpto WHERE forename_1 LIKE '%String%' OR forename_2 LIKE '%String%' OR surname LIKE '%String%' Helder M. Vieira