More efficient OR

Поиск
Список
Период
Сортировка
От Keith Worthington
Тема More efficient OR
Дата
Msg-id 20050216155901.M41773@narrowpathinc.com
обсуждение исходный текст
Ответы Re: More efficient OR  (Reinoud van Leeuwen <reinoud.v@n.leeuwen.net>)
Re: More efficient OR  (Scott Marlowe <smarlowe@g2switchworks.com>)
Re: More efficient OR  (Sean Davis <sdavis2@mail.nih.gov>)
Список pgsql-sql
Hi All,

In several of my SQL statements I have to use a WHERE clause that contains
mutiple ORs.  i.e.

WHERE column1 = 'A' OR     column1 = 'B' OR     column1 = 'C'

Is there a more efficient SQL statement that accomplishes the same limiting
functionality?

Kind Regards,
Keith


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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Making NULL entries appear first when ORDER BY ASC
Следующее
От: Reinoud van Leeuwen
Дата:
Сообщение: Re: More efficient OR