Re: Find \ in text

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: Find \ in text
Дата
Msg-id 4C86B991.6000802@hogranch.com
обсуждение исходный текст
Ответ на Re: Find \ in text  (Steve Crawford <scrawford@pinpointresearch.com>)
Список pgsql-general
  On 09/07/10 2:44 PM, Steve Crawford wrote:
>> Any other suggestions?
>
> ... like E'%\\\\%'
>

and, for extra fun, if that SQL statement is a constant string in a C or
similar programming language, you may well need to double up those \'s
again so that SQL sees them as the C/C++/etc parser itself does \ escaping.

     sql_command = "select MM_PATH_FILE from MULTI_MEDIA Where
MM_PATH_FILE NOT ILIKE E'%\\\\\\\\%';"



Seriously, MS Windows programmers really really should use / for
paths... the windows API's are all perfectly happy with these.  only the
command parser insists on \ as a path delimiter.



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

Предыдущее
От: Steve Crawford
Дата:
Сообщение: Re: Find \ in text
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Empty SELECT result at simultaneous calls