Re: select a range of data

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: select a range of data
Дата
Msg-id 12568.1184959192@sss.pgh.pa.us
обсуждение исходный текст
Ответ на select a range of data  (Jessica Richard <rjessil@yahoo.com>)
Список pgsql-admin
Jessica Richard <rjessil@yahoo.com> writes:
> how do I select col from table where col like 'a[a-z]c24[0-9]7"?
> How do I handle the range bracket in the query?

Using LIKE, you don't.  However there are two other types of
pattern-matching operators that do understand character classes:

http://www.postgresql.org/docs/8.2/static/functions-matching.html

            regards, tom lane

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

Предыдущее
От: Jessica Richard
Дата:
Сообщение: select a range of data
Следующее
От: Jon Sime
Дата:
Сообщение: Re: select a range of data