Re: [GENERAL] Quoting/Escaping

Поиск
Список
Период
Сортировка
От Ed Loehr
Тема Re: [GENERAL] Quoting/Escaping
Дата
Msg-id 3842037C.533C41CA@austin.rr.com
обсуждение исходный текст
Ответ на Quoting/Escaping  (Bill Sneed <bsneed@mint.net>)
Список pgsql-general
Bill Sneed wrote:

> I'd like to be able to find a book title that contain C++ in the
> title....
>
> select * from books where title ~* 'C++'   doesn't work.
>
> I've tried all the basic methods of quoting the Plus (+) signs but
> none seem to work...
>
> Any hints would be most appreciated....
>
> ....Thanks...
>
> ....Bill Sneed, Prospect, Maine....
>
> ************

I think the 'like' operator may do what you seek.

create table t (w varchar);
insert into t (w) values ('C++');
insert into t (w) values ('C');
select * from t where w like 'C++';
w
---
C++
(1 row)

Cheers.
Ed


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

Предыдущее
От: "Darvin Zuch"
Дата:
Сообщение: RE: [GENERAL] Mail to DB.
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Re: [GENERAL] drop/rename table and transactions