Re: escaping character in sql statements

Mark Mchugh <[email protected]> Thu, 25 Oct 2007 02:24:12 -0700 (PDT)
Newsgroups gmane.comp.db.mysql.windows
Message-ID <[email protected]>
for some reason this does not seem to work either?

----- Original Message ----
From: Petr Vileta <[email protected]>
To: mysql list <[email protected]>
Sent: Thursday, October 25, 2007 1:04:10 AM
Subject: Re: escaping character in sql statements


Mark Mchugh wrote:
> Hi,
> I am writing an sql to retrieve data relating to certain files in a
> folder from my database. Some times part of the data may contain a '
> character.
>
> here's an example of the sql
>
> select * from files where location = 
> '\\\\\\\\192.168.0.100\\\\clients\\\\o''orielly\\\\file%'
>
>
This should be

select * from files where location = 
'\\\\\\\\192.168.0.100\\\\clients\\\\o\'orielly\\\\file%'

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/[email protected]





__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-- 
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe:    http://lists.mysql.com/[email protected]