From: Vladimir Terziev <vlady@school.digsys.bg>
To: Fred Schoonewille <schoonewille@coh.fgg.eur.nl>
Cc: pgsql-sql@hub.org <pgsql-sql@hub.org>
Subject: Re: [SQL] select a part of a name
Date: Wed, 8 Dec 1999 10:40:35 +0200 (EET)
Message-ID: <Pine.BSI.4.20.9912081039110.19978-100000@school.digsys.bg> (raw)
In-Reply-To: <384E12F0.E5F2F858@coh.fgg.eur.nl>
You must write:
select * from TEST where name ~ '&name';
This will match all names containing &name
Vladimir
On Wed, 8 Dec 1999, Fred Schoonewille wrote:
> 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
> -------------------------------------------------------
>
>
>
>
>
> ************
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: vlady@school.digsys.bg, schoonewille@coh.fgg.eur.nl, pgsql-sql@hub.org
Subject: Re: [SQL] select a part of a name
In-Reply-To: <Pine.BSI.4.20.9912081039110.19978-100000@school.digsys.bg>
References: <384E12F0.E5F2F858@coh.fgg.eur.nl> <Pine.BSI.4.20.9912081039110.19978-100000@school.digsys.bg>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox