Re: efficiency of wildcards at both ends - Mailing list pgsql-general

From John R Pierce
Subject Re: efficiency of wildcards at both ends
Date
Msg-id 4FE21057.2020407@hogranch.com
Whole thread Raw
In response to Re: efficiency of wildcards at both ends  (Edson Richter <edsonrichter@hotmail.com>)
Responses Re: efficiency of wildcards at both ends  (Edson Richter <edsonrichter@hotmail.com>)
List 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


pgsql-general by date:

Previous
From: Andy Colson
Date:
Subject: Re: Simple method to format a string?
Next
From: hubert depesz lubaczewski
Date:
Subject: Re: How to determine to which version of PostgreSQL a patch was applied