= or LIKE ?

Поиск
Список
Период
Сортировка
От Jesper Krogh
Тема = or LIKE ?
Дата
Msg-id 499857A7.4000201@krogh.cc
обсуждение исходный текст
Ответы Re: = or LIKE ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
Hi.

Can anyone explain me this behavior?

testdb=# select E'\\' = E'\\'; ?column?
---------- t
(1 row)

testdb=# select E'\\' like E'\\'; ?column?
---------- f
(1 row)


Shouldnt the like operator do the same as the = if there occours no 
wildcards and stuff in the string?

-- 
Jesper


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

Предыдущее
От: Tovo Rabemanantsoa
Дата:
Сообщение: Re: Grass Root Protectionism
Следующее
От: Tom Lane
Дата:
Сообщение: Re: = or LIKE ?