Re: [SQL] select ... from ... where ... ~* 'C++'

Поиск
Список
Период
Сортировка
От tjk@tksoft.com
Тема Re: [SQL] select ... from ... where ... ~* 'C++'
Дата
Msg-id 199909041738.KAA10486@uno.tksoft.com
обсуждение исходный текст
Ответ на select ... from ... where ... ~* 'C++'  (Martin Dolog <dolog@mcprogress.com>)
Список pgsql-sql
Martin,

Try

select something from something_t where some ~* 'C[+][+]'

or rather,

select something from something_t where some like '%C++%'

Troy


>
>
> hi *,
>
> PLease, how can I make case insensitive query
> which work with string like 'C++' too ?
>
> select something from something_t where some ~* 'C++'
>
> doesn't work!
> I got following error message:
>
> "ERROR:  regcomp failed with error repetition-operator operand invalid"
>
>
> I am running on Linux/Redhat6/postgresql6.5 compiled
> with --enable-locale flag.
>
>
> Thank you very much for help.
>
>
>
>     Martin
>
> --
>
> #md
>
> ************
>
>

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

Предыдущее
От: Martin Dolog
Дата:
Сообщение: select ... from ... where ... ~* 'C++'
Следующее
От: sukmin@netian.com
Дата:
Сообщение: º¸½Ã°í ÇູÇϼ¼¿è :-)