Skip navigation links

MySQL Forums :: C#, Mono, .Net :: Problem executing the query with escape character


Advanced Search

Problem executing the query with escape character
Posted by: Biju VA ()
Date: October 23, 2009 05:32AM

Hi,
I'm a .net developer, working on C#.
I have a MySQL database with table name 'TableA', my requirement is to Get all the records from the TableA whose Comments field is " 'Customer report status set to 'Report Finished'. "

I tried using the following query, but an getting an error related to the escape character.


string cmdStr="SELECT * FROM TableA WHERE TableA.Comments='Customer report status set to \'Report Finished\'.'";

Could anyone please suggest me a solution?

With regards
B1ju

Options: ReplyQuote


Subject Written By Posted
Problem executing the query with escape character Biju VA 10/23/2009 05:32AM
Re: Problem executing the query with escape character Biju VA 10/23/2009 06:01AM


Sorry, only registered users may post in this forum.