Re: regexp_matches where clause - PG 9.1

From: Arjen Nienhuis <a(dot)g(dot)nienhuis(at)gmail(dot)com>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>, Patrick B <patrickbakerbr(at)gmail(dot)com>
Subject: Re: regexp_matches where clause - PG 9.1
Date: 2017-04-07 02:15:54
Message-ID: CAG6W84+wEsqK0DBBeA_Diz06RiTOb5aTXxvVMnnFjAdbtWf78g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Apr 7, 2017 4:08 AM, "David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
wrote:

On Thu, Apr 6, 2017 at 6:33 PM, Patrick B <patrickbakerbr(at)gmail(dot)com> wrote:

> When actually I just want the 'main''
>

​SELECT * FROM tbl WHERE path_name ~ '/main$' ?

David J.

Or just:

SELECT 'main';

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Arjen Nienhuis 2017-04-07 02:18:53 Re: regexp_matches where clause - PG 9.1
Previous Message Patrick B 2017-04-07 02:15:24 Re: regexp_matches where clause - PG 9.1