Seeking rows whit \

Поиск
Список
Период
Сортировка
От Francisco Reyes
Тема Seeking rows whit \
Дата
Msg-id cone.1211163964.161371.52265.1000@zoraida.natserv.net
обсуждение исходный текст
Ответы Re: Seeking rows whit \
Список pgsql-general
Is there a way to search for rows with the character \?

I tried variants of like and  ~.

create table mytable (f1 text);
insert into mytable values ('Test row 1');
insert into mytable values (E'Test row 2 \\');

select * from mytable where f1 like E'%\\%'; <-- returned nothing
select * from mytable where f1 ~ '\'; <-- waiting for single quote
select * from mytable where f1 ~ E'\\'; <-- Error

And a few more variants.. with no valid reults.

Any suggestions?

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

Предыдущее
От: Klint Gore
Дата:
Сообщение: Re: triggers: dynamic references to fields in NEW and OLD?
Следующее
От: "Gurjeet Singh"
Дата:
Сообщение: Re: Seeking rows whit \