Re: [GENERAL] LIKE (SQL operator) - Mailing list pgsql-general

From The Hermit Hacker
Subject Re: [GENERAL] LIKE (SQL operator)
Date
Msg-id Pine.BSF.3.96.980629232810.6863O-100000@thelab.hub.org
Whole thread Raw
In response to LIKE (SQL operator)  (Joao Paulo Felix <felix@cyclades.com>)
List pgsql-general
On Mon, 29 Jun 1998, Joao Paulo Felix wrote:

> Hello there,
>
> I have a table called "products" which has a field named "item" with
> following data stored:
>
> "item"
> PR1000
> PR2000
> PR3000
> PRZE10
> Lze100
> Beta
> Teta
>
> Does PostgreSQL support the SQL operator "LIKE" . I have unsuccessfully
> trying the following SQL query:
>
> (SELECT * FROM products WHERE item LIKE '*PR*')

SELECT * FROM products WHERE item LIKE '%PR%'


Marc G. Fournier
Systems Administrator @ hub.org
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org


pgsql-general by date:

Previous
From: "Brett W. McCoy"
Date:
Subject: Re: [GENERAL] LIKE (SQL operator)
Next
From: "Rob den Boer"
Date:
Subject: RE: [GENERAL] vacuuming