Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 7DA77B5DC55 for ; Tue, 30 Aug 2011 12:02:06 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 09149-02 for ; Tue, 30 Aug 2011 15:02:00 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mxin.ulb.ac.be (mxin.ulb.ac.be [164.15.128.112]) by mail.postgresql.org (Postfix) with ESMTP id BECC1B5DC38 for ; Tue, 30 Aug 2011 12:01:59 -0300 (ADT) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhkCAFfyXE6kD30E/2dsb2JhbAAMNoRMlCqRVgEBBSNVEQsYCRYLAgIJAwIBAgFFEwgBAa44kg2FPIERBI4aigmMCA Received: from bebif01.ulb.ac.be (HELO [10.0.0.194]) ([164.15.125.4]) by smtp.ulb.ac.be with ESMTP; 30 Aug 2011 17:01:57 +0200 Message-ID: <4E5CFB64.5060409@ulb.ac.be> Date: Tue, 30 Aug 2011 17:01:56 +0200 From: Julien Cigar Organization: Belgian Biodiversity Platform User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:6.0) Gecko/20110825 Thunderbird/6.0 MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support? References: <4E5CF8F8.7030404@encs.concordia.ca> In-Reply-To: <4E5CF8F8.7030404@encs.concordia.ca> Content-Type: multipart/mixed; boundary="------------000701080105030703050601" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201108/120 X-Sequence-Number: 35788 This is a multi-part message in MIME format. --------------000701080105030703050601 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit use a regex ? On 08/30/2011 16:51, Emi Lu wrote: > Good morning, > > Does psql provide something like the following query command? > > select * from tablename > where col1 not ilike ('str1%', 'str2%'... 'strN%') > > Thanks a lot! > Emi > -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. --------------000701080105030703050601 Content-Type: text/x-vcard; charset=utf-8; name="jcigar.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="jcigar.vcf" begin:vcard fn:Julien Cigar n:Cigar;Julien org;quoted-printable:Belgian Biodiversity Platform;ULB (Universit=C3=A9 Libre de Bruxelles) adr:;;;Brussels;;;Belgium email;internet:jcigar@ulb.ac.be tel;work:+32(0)26505752 x-mozilla-html:FALSE url:http://www.biodiversity.be version:2.1 end:vcard --------------000701080105030703050601--