Re: pattern matching

From: "Brett W(dot) McCoy" <bmccoy(at)chapelperilous(dot)net>
To: Alan Nilsson <anilsson(at)apple(dot)com>
Cc: PGSQL <pgsql-novice(at)postgresql(dot)org>
Subject: Re: pattern matching
Date: 2001-01-10 04:04:38
Message-ID: Pine.LNX.4.30.0101092300120.11754-100000@chapelperilous.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Tue, 9 Jan 2001, Alan Nilsson wrote:

> I am trying to search for text(varchar) using the ILIKE operator,
> however I always get a parser error. Similarly the ~~* operator does
> not work. (actually, doesn't exist)

The case-insensitive regexp operator is ~*, and it does work in
PostgreSQL. There is no ~~* or ILIKE, but you can do LIKE UPPER('*text*')
to achieve the same thing.

-- Brett
http://www.chapelperilous.net/~bmccoy/
---------------------------------------------------------------------------
According to my best recollection, I don't remember.
-- Vincent "Jimmy Blue Eyes" Alo

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2001-01-10 05:14:04 Re: pattern matching
Previous Message Alan Nilsson 2001-01-10 03:21:18 pattern matching