if(map.getValue()!=null){ String ss= map.getValue().toString(); if(ss.indexOf("‘")!=-1){//判断是否有单引号 String st = ss.replace("‘", "\\‘"); ss =st; }
java插入语句中有单引号的处理
原文:https://www.cnblogs.com/yxj808/p/13353560.html