Re: Find \ in text

Поиск
Список
Период
Сортировка
От Steve Crawford
Тема Re: Find \ in text
Дата
Msg-id 4C86B220.6010408@pinpointresearch.com
обсуждение исходный текст
Ответ на Find \ in text  (Christine Penner <chris@fp2.ca>)
Ответы Re: Find \ in text  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general
On 09/07/2010 02:04 PM, Christine Penner wrote:
> I have a character field in a table that contains either a file name
> or a full path and file name. I need to pick out the ones that have no
> full path. I do this by looking for no \. This is what I am doing:
>
> select MM_PATH_FILE from MULTI_MEDIA Where MM_PATH_FILE NOT ILIKE '%\\%'
>         -this gives me all records no matter what has a \ or not
>
> select MM_PATH_FILE from MULTI_MEDIA Where MM_PATH_FILE NOT ILIKE '%\%'
>         -this gives me nothing again no matter  what has a \ or not
>
> I even tried this
> select MM_PATH_FILE from MULTI_MEDIA Where position('\' in
> MM_PATH_FILE)=0
>         -this gives me an error
>
> Any other suggestions?
... like E'%\\\\%'

Cheers,
Steve


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

Предыдущее
От: Steve Crawford
Дата:
Сообщение: Re: Find \ in text
Следующее
От: John R Pierce
Дата:
Сообщение: Re: Find \ in text