Re: [GENERAL] Quoting/Escaping

From: Ed Loehr <ELOEHR(at)austin(dot)rr(dot)com>
To: Bill Sneed <bsneed(at)mint(dot)net>
Cc: "pgsql-general(at)hub(dot)org" <pgsql-general(at)hub(dot)org>
Subject: Re: [GENERAL] Quoting/Escaping
Date: 1999-11-29 04:39:24
Message-ID: 3842037C.533C41CA@austin.rr.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John Henderson 1999-11-29 05:11:59 memory
Previous Message Darvin Zuch 1999-11-29 04:19:49 RE: [GENERAL] Mail to DB.