Re: Wild Cards

From: Adam Haberlach <adam(at)newsnipple(dot)com>
To: "<No Name>" <bobmarley4u2c(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Wild Cards
Date: 2001-01-27 07:04:12
Message-ID: 20010126230412.A13869@newsnipple.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)newsnipple(dot)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.

In response to

  • Wild Cards at 2001-01-25 13:40:23 from <No Name>

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-01-27 07:27:04 Re: 2 or more columns of type 'serial' in a table
Previous Message Tom Lane 2001-01-27 06:47:07 Re: Re: Re: MySQL has transactions