Search Postgresql Archives

Re: Find \ in text

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 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.



--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux