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

From Edson Richter
Subject Re: efficiency of wildcards at both ends
Date
Msg-id BLU0-SMTP141146622E6CA8EC9AAA7A7CFFE0@phx.gbl
Whole thread Raw
In response to Re: efficiency of wildcards at both ends  (John R Pierce <pierce@hogranch.com>)
List pgsql-general
Em 20/06/2012 15:03, John R Pierce escreveu:
> 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'
>
>
>
Perfect. I did not realized this case.

Thanks,

Edson.


pgsql-general by date:

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