From: Rodger Donaldson <rodgerd@diaspora.gen.nz>
To: pgsql-sql@postgresql.org
Subject: Re: Wild Cards
Date: Sat, 27 Jan 2001 18:39:56 +1300
Message-ID: <20010127183956.A5349@diaspora.gen.nz> (raw)
In-Reply-To: <Pine.LNX.4.30.0101251424510.24881-100000@chapelperilous.net>
References: <94pa60$31fk$1@news.tht.net>
<Pine.LNX.4.30.0101251424510.24881-100000@chapelperilous.net>
On Thu, Jan 25, 2001 at 02:29:55PM -0500, Brett W. McCoy wrote:
> On Thu, 25 Jan 2001, <No Name> wrote:
>
> > I am not able to get Wildcards in PostgreSQL, I know its * (asterisk), but
> > its not working. can someone show me a example or something?
>
> Wildcards where? You can use * to mean all the fields in a table in a
> SELECT statement, but if you are using LIKE in a WHERE clause, the
> wildcards are % to mean any group of characters and _ to mean any single
> character.
Although, of course, you can use POSIXlish regexps with the ~* and ~
operators.
--
Rodger Donaldson rodgerd@diaspora.gen.nz
"My mother made me a lesbian"
"Oh goody! If I buy her the wool, will she make me one too??"
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: rodgerd@diaspora.gen.nz
Subject: Re: Wild Cards
In-Reply-To: <20010127183956.A5349@diaspora.gen.nz>
References: <94pa60$31fk$1@news.tht.net> <Pine.LNX.4.30.0101251424510.24881-100000@chapelperilous.net> <20010127183956.A5349@diaspora.gen.nz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox