single quotes and double quotes in mysql insert and update query (java) -
Common-Anonymous 'A'b' C '' Def 'Ltd'
I try to add each 'and' before '"but the resultant query that is executed
" UPDATE empTable SET empId =' 25 ', comName =' I'b 'c' 'def' jee lv id = 1 "
I have not been seen within my '' comanem '' and 'not present in front of each' and '
Here is the code to create the column value
columnValue.replaceAll ("\", "\\" + "\ '"); ColumnValue.replaceAll (" \ "", "\\" + "\" "); ColumnValue = (" '"+ column value"' ');
How to insert a string of these types?
Fix as soon as you are in Apache Commons Lang or equivalent library such as
Comments
Post a Comment