select a part of a name

From: Fred Schoonewille <schoonewille(at)coh(dot)fgg(dot)eur(dot)nl>
To: "pgsql-sql(at)hub(dot)org" <pgsql-sql(at)hub(dot)org>
Subject: select a part of a name
Date: 1999-12-08 08:12:32
Message-ID: 384E12F0.E5F2F858@coh.fgg.eur.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

I am trying to select a part of a name from the columm NAME,

e.g. sql asks the user for input like: jone

sql should give all names which begin with or containing 'jone'

-jones
-Tom-Jones

Working with:

select * from TEST
where NAME= '&name'

finds only exact matches

Can I use e.g. % ?
--

-----------------------------------
Fred Schoonewille

Applicatiebeheer
Computer Ondersteuning Hoboken
-----------------------------------
http://www.eur.nl/fgg/coh
-------------------------------------------------------

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Thilo Mezger 1999-12-08 08:21:41 turning a table by 90 degrees
Previous Message neko 1999-12-08 02:13:59 Re: [SQL] getting table info