The ComName is 'a'b'c'"def"j Limited.
i try to add \ before every ' and " but the resultant query that is executed is
"UPDATE empTable SET empId= '25', ComName = 'a'b'c'"def"j Limited where ID=1"
i don't see my Comname within '' and \ is not present before every ' and "
Here is the code to construct the column value
columnValue.replaceAll("\'", "\\" + "\'");
columnValue.replaceAll("\"", "\\" + "\"");
columnValue=("'" + columnValue + "'");
How to insert string of these types?