Re: Wild Cards - Mailing list pgsql-general

From Adam Haberlach
Subject Re: Wild Cards
Date
Msg-id 20010126230412.A13869@newsnipple.com
Whole thread Raw
In response to Wild Cards  ("<No Name>" <bobmarley4u2c@yahoo.com>)
Responses Re: Wild Cards
List pgsql-general
On Thu, Jan 25, 2001 at 08:40:23AM -0500, <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?

It's % and you have to use the LIKE operator.

SELECT * FROM thistable WHERE name LIKE '%marley';

--
Adam Haberlach            |A cat spends her life conflicted between a
adam@newsnipple.com       |deep, passionate, and profound desire for
http://www.newsnipple.com |fish and an equally deep, passionate, and
'88 EX500                 |profound desire to avoid getting wet.

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Trouble porting postgreSQL to WinNT
Next
From: Tom Lane
Date:
Subject: Re: 2 or more columns of type 'serial' in a table