Re: [SQL] select a part of a name

From: <kaiq(at)realtyideas(dot)com>
To: Vladimir Terziev <vlady(at)school(dot)digsys(dot)bg>
Cc: Fred Schoonewille <schoonewille(at)coh(dot)fgg(dot)eur(dot)nl>, "pgsql-sql(at)hub(dot)org" <pgsql-sql(at)hub(dot)org>
Subject: Re: [SQL] select a part of a name
Date: 1999-12-08 15:47:51
Message-ID: Pine.LNX.4.10.9912080946250.2267-100000@picasso.realtyideas.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

use: where name like '%names%'

On Wed, 8 Dec 1999, Vladimir Terziev wrote:

>
>
> 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
> > -------------------------------------------------------
> >
> >
> >
> >
> >
> > ************
> >
> >
>
>
> ************
>

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Moray McConnachie 1999-12-08 16:50:34 Re: [SQL] select a part of a name
Previous Message Justin Long 1999-12-08 14:49:28 RE: [SQL] select a part of a name