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
обсуждение исходный текст
Ответ на Re: [SQL] select a part of a name  (<kaiq@realtyideas.com>)
Ответы Re: [SQL] select a part of a name  (neko@kredit.sth.szif.hu)
Список pgsql-sql

> 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 по дате отправления:

Предыдущее
От:
Дата:
Сообщение: Re: [SQL] select a part of a name
Следующее
От: John C Cusick
Дата:
Сообщение: Re: [SQL] Getting last used oid