Re: [SQL] select a part of a name
От
Moray McConnachie
Тема
Re: [SQL] select a part of a name
Дата
Msg-id
003401bf419c$58826f30$760e01a3@oucs.ox.ac.uk
Список
Дерево обсуждения
select a part of a name Fred Schoonewille <schoonewille@coh.fgg.eur.nl>
Re: [SQL] select a part of a name Vladimir Terziev <vlady@school.digsys.bg>
Re: [SQL] select a part of a name <kaiq@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
В списке pgsql-sql по дате отправления