Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: escaping character in sql statements

From: Petr Vileta <petr(at)practisoft.cz>
Date: Thu Oct 25 2007 - 21:11:46 EDT


Mark Mchugh wrote:
> hi,
> i need double the number of them cos in the database the file/path
> name is stored as
>
> \\192.168.0.100\clients\\o''orielly\file1.pdf
>
> wierd?
>

Oh sorry, in this case you must write it as select * from files where location =
'\\\\192.168.0.100\\clients\\\\o\'\'orielly\\file1.pdf' In other word, you must quote this way
char(s) quoted


\                    \\
\\                   \\\\
'                    \'
''                    \'\'

Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your mail from another non-spammer site please.)

-- 
MySQL Windows Mailing List
For list archives: 
http://lists.mysql.com/win32
To unsubscribe:    
http://lists.mysql.com/win32?unsub=lists@pantek.com
Received on Thu Oct 25 21:19:56 2007

This archive was generated by hypermail 2.1.8 : Fri Jul 04 2008 - 00:27:09 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library