Re: efficiency of wildcards at both ends

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: efficiency of wildcards at both ends
Date: 2012-06-20 18:03:03
Message-ID: 4FE21057.2020407@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 06/20/12 10:37 AM, Edson Richter wrote:
>
> select * from tb1
> where nome like 'CARLOS%' or reverse(nome) like reverse('%CARLOS')
>
> Should return same results as
> select * from tb1
> where nome like '%CARLOS%'

no, that won't match 'abcCARLOSxyx'

--
john r pierce N 37, W 122
santa cruz ca mid-left coast

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message hubert depesz lubaczewski 2012-06-20 18:06:46 Re: How to determine to which version of PostgreSQL a patch was applied
Previous Message Andy Colson 2012-06-20 18:02:37 Re: Simple method to format a string?