Re: [SQL] Finding strings inside a field...

From: Zsolt Varga <redax(at)agria(dot)hu>
To: PostgreSQL SQL Discussion <pgsql-sql(at)postgreSQL(dot)org>
Subject: Re: [SQL] Finding strings inside a field...
Date: 1998-06-30 08:20:11
Message-ID: Pine.LNX.3.96.980630101520.17098D-100000@lupus.agria.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


|
| SELECT * FROM streets WHERE street LIKE '%Zion%';
|
or even
SELECT * FROM streets WHERE street ~ 'zion';
SELECT * FROM streets WHERE street ~* 'ZiOn';

the second one is case insensitive....

redax

.----------------------------------------------------------.
|Zsolt Varga | tel/fax: +36 36 422811 |
| AgriaComputer LTD | email: redax(at)agria(dot)hu |
| System Administrator | URL: http://www.agria.hu/ |
`----------------------------------------------------------'

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Rob den Boer 1998-06-30 11:16:38 RE: [GENERAL] Updating multiple fields
Previous Message Brook Milligan 1998-06-29 22:28:03 IN and subselects