Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i3McI-0001Sz-NB for pgsql-general@arkaria.postgresql.org; Thu, 29 Aug 2019 15:45:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i3McG-0007YU-Np for pgsql-general@arkaria.postgresql.org; Thu, 29 Aug 2019 15:45:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i3McG-0007Vb-Ac for pgsql-general@lists.postgresql.org; Thu, 29 Aug 2019 15:45:40 +0000 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i3Mc8-0000op-4X for pgsql-general@lists.postgresql.org; Thu, 29 Aug 2019 15:45:39 +0000 Received: by mail-pf1-x436.google.com with SMTP id b24so2347377pfp.1 for ; Thu, 29 Aug 2019 08:45:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=EcgFolK3fi1ErIsINHtaNDS6hnEFBPiwDUvm5xpLDbw=; b=hUE5VD/WCKqlIX2RXx4jL7EjtTFoRSY1l87pvGhP+GFz4RHIxVqLIHtcTNUFludXOX vJyUW2QJB4U/LzV7xkCyDDep8KbfWACXz9MGtGEprUeEwzxJbAAEoX+QCCLtv9tO8WOE VTZXwwcp9LH1LiueqzfcncTMkCRkIXRGT/p7hMEONQRxiiTai43ugL0l1tL0NRB72m3t k/rrSuKRjFtlTVPfsGlqxnmCt3unLL4X9TJVMTOIWONGnvFl+YzO+hwZHRMWZdFqXREK A6GjBMl3fJqkXEsAjQBbC9/0XIb1q+QZe3qGW3zYs/K+2zuspASBfszU1q+qTzTH69hO tSdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=EcgFolK3fi1ErIsINHtaNDS6hnEFBPiwDUvm5xpLDbw=; b=sE+m1X4FBJMEK2pZv5OLTN5awSQjkrV5Eq3Sx9naJpXoG6KB84zUYqVIAJwINXu5Jf nGQsBMd1pxYDlf8HYZSkeh4ew0ppP5/tqPxPGon65SewLqXNJ1NkrSzKa1Rqim6300Wq 39M7ttdmZBa9V1N3685L+/NeGrR8/JjtL8zbqggmeOS0Kdsn9bUQ8CZm2HXOm+mlZrPm pl9V86dG7dvd1G86rYYvlIWdA3FJ8hEsFhY6agFFdXYMQr2yHa4DWOhl8WgaJVxu4Isy A60xyePz+HGZEzz0q041X5PslDf1Of38BhpMcEBBHFRXk/UniYYLjxwxP3rEF6OL1e7u VO8w== X-Gm-Message-State: APjAAAVuYTbv3G0VB+j6vIGHmqON6dXg9+7/QxX+Jwp0AKyWsLd4Ymh5 NBE09bfwsq/xeH2H/2z99ytIaN9n X-Google-Smtp-Source: APXvYqxMRnfWPt32jLXpqBXLYQR6oGGTbTh0Cu0FsfkN8wUAPzm//TPT9u0nwkeD9yM5CwkB3pI8eg== X-Received: by 2002:a17:90a:b884:: with SMTP id o4mr10351892pjr.52.1567091716232; Thu, 29 Aug 2019 08:15:16 -0700 (PDT) Received: from [10.104.134.41] ([155.100.47.1]) by smtp.gmail.com with ESMTPSA id y14sm8477668pfq.85.2019.08.29.08.15.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Aug 2019 08:15:15 -0700 (PDT) Subject: Re: Selecting rows having substring in a column To: pgsql-general@lists.postgresql.org References: From: Rob Sargent Message-ID: <0e231701-466e-2119-d31f-8f66ebe48e89@gmail.com> Date: Thu, 29 Aug 2019 09:15:14 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 8/29/19 8:47 AM, Rich Shepard wrote: > On Thu, 29 Aug 2019, Gary Cowell wrote: > >> Look at the 'LIKE' function > > Gary, > > Yes, I thought of like but didn't think to look for it in the postgres > manual. > > Thank you very much, > > Rich > > I've given up on the "likes" in favour of the ~ (tilde) and ~* (tilde asterisk) operator.  Way cool, powerful. Not standard sql though (iirc)