Re: Pattern matching....

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Pattern matching....
Дата
Msg-id 8053.1013209600@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Pattern matching....  ("Steve Wolfe" <steve@iboats.com>)
Список pgsql-general
"Steve Wolfe" <steve@iboats.com> writes:
>   Here's a question... in Perl, I could do a pattern match like this:
>  =~ /$var[A-Z]/
>   In PG, I can do something similar, matching a field name:
>  ~* my_field
>   But how do I add the "[A-Z]" to it?

Uh, what's wrong with

    ~* (my_field || '[A-Z]')

Or am I missing the point?

            regards, tom lane

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

Предыдущее
От: Edwin Grubbs
Дата:
Сообщение: Re: foreign keys and transactions
Следующее
От: "Steve Wolfe"
Дата:
Сообщение: Re: Pattern matching....