Re: [SQL] select a part of a name

Поиск
Список
Период
Сортировка
От neko@kredit.sth.szif.hu
Тема Re: [SQL] select a part of a name
Дата
Msg-id Pine.LNX.4.10.9912090312510.23988-100000@kredit.sth.szif.hu
обсуждение исходный текст
Ответ на Re: [SQL] select a part of a name  ("Moray McConnachie" <moray.mcconnachie@computing-services.oxford.ac.uk>)
Ответы Re: [SQL] select a part of a name  ("tjk@tksoft.com" <tjk@tksoft.com>)
Список pgsql-sql
On Wed, 8 Dec 1999, Moray McConnachie wrote:
> 
> > 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.
I think, this case always will be slow. Because the first '%'. I'm not
sure about all of access methods, and comparsion operators. But this
combination of them (btree/hash -- like) can't do indexed substr lookup.
Is there any tricks, to do it?

--nek;(



В списке pgsql-sql по дате отправления:

Предыдущее
От: De Moudt Walter
Дата:
Сообщение: Re: [SQL] subquery, except and view
Следующее
От: "tjk@tksoft.com"
Дата:
Сообщение: Re: [SQL] select a part of a name