Re: ILIKE

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: ILIKE
Дата
Msg-id 200302241039.15612.josh@agliodbs.com
обсуждение исходный текст
Ответ на Re: ILIKE  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: ILIKE  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Four Reasons to use ILIKE, which have nothing to do with mSQL:

1) It's faster to type than most analagous regexp comparisons, and much faster
than comparing two LOWERs or two UPPERS.

2) It's a great operator for comparing two text variables or columns of small
tables where you don't want to worry about escaping the many items of regexp
punctuation.

3) It's an easy search-and-replace operator for porting applications from SQL
databases which automatically do case-insensitive comparisons using LIKE,
such as MySQL and some installations of MSSQL.

4) It's just as indexible (or not indexable) as regexp comparisons, and easier
to understand for users from the Microsoft world than regexp.

And, on a quick search, one of my applications uses ILIKE 21 times in the
built in functions and views.

--
Josh Berkus
Aglio Database Solutions
San Francisco


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

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: request for sql3 compliance for the update command
Следующее
От: Darko Prenosil
Дата:
Сообщение: I cant find it or I'm just lazy ?