Re: = or LIKE ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: = or LIKE ?
Дата
Msg-id 23452.1234723360@sss.pgh.pa.us
обсуждение исходный текст
Ответ на = or LIKE ?  (Jesper Krogh <jesper@krogh.cc>)
Ответы Re: = or LIKE ?  (Jesper Krogh <jesper@krogh.cc>)
Список pgsql-sql
Jesper Krogh <jesper@krogh.cc> writes:
> Shouldnt the like operator do the same as the = if there occours no 
> wildcards and stuff in the string?

If there are also no escape characters, then yeah.

FWIW, 8.4 will complain about this case:

regression=# select E'\\' like E'\\';
ERROR:  LIKE pattern must not end with escape character
        regards, tom lane


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

Предыдущее
От: Jesper Krogh
Дата:
Сообщение: = or LIKE ?
Следующее
От: Jesper Krogh
Дата:
Сообщение: Re: = or LIKE ?