From: Moray McConnachie <moray.mcconnachie@computing-services.oxford.ac.uk>
To: kaiq@realtyideas.com
To: Vladimir Terziev <vlady@school.digsys.bg>
Cc: Fred Schoonewille <schoonewille@coh.fgg.eur.nl>
Cc: pgsql-sql@hub.org
Subject: Re: [SQL] select a part of a name
Date: Wed, 8 Dec 1999 16:50:34 -0000
Message-ID: <003401bf419c$58826f30$760e01a3@oucs.ox.ac.uk> (raw)
References: <Pine.LNX.4.10.9912080946250.2267-100000@picasso.realtyideas.com>
> use: where name like '%names%'
Except that the user specified he wanted to be able to find Tom Jones
and jonas from the search text jon, so you either need to use:
where lower(name) like ('%' ¦¦ lower(searchtext) ¦¦ '%')
or something similar, which is slow unless you have an index on
lower(name), and even then.
Or you use the regexp search ~* given previously.
----------------------------------------------------------------------
----------------
Moray.McConnachie@computing-services.oxford.ac.uk
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: moray.mcconnachie@computing-services.oxford.ac.uk, kaiq@realtyideas.com, 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: <003401bf419c$58826f30$760e01a3@oucs.ox.ac.uk>
References: <Pine.LNX.4.10.9912080946250.2267-100000@picasso.realtyideas.com> <003401bf419c$58826f30$760e01a3@oucs.ox.ac.uk>
* 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