Re: LIKE operator and string comparison

Поиск
Список
Период
Сортировка
От Wei Weng
Тема Re: LIKE operator and string comparison
Дата
Msg-id 41520882.6020702@kencast.com
обсуждение исходный текст
Ответ на Re: LIKE operator and string comparison  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: LIKE operator and string comparison
Список pgsql-sql
Tom Lane wrote:

> Wei Weng <wweng@kencast.com> writes:
> 
>>But if I choose to use string comparison, instead of 4 escape characters, I 
>>only need 2.
> 
> 
>>Why is that?
> 
> 
> Backslash is an escape character for LIKE.
> 
>             regards, tom lane
> 
> 

What about in regular strings? I do need to use backslash to escape the 
other backslash in order to get the '\'. Why isn't that the case in LIKE 
operation?

Thanks

Wei



В списке pgsql-sql по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: LIKE operator and string comparison
Следующее
От: Tom Lane
Дата:
Сообщение: Re: LIKE operator and string comparison