java插入语句中有单引号的处理

if(map.getValue()!=null){
String ss= map.getValue().toString();
if(ss.indexOf("'")!=-1){//判断是否有单引号
String st = ss.replace("'", "''");
ss =st;
}
原文地址:https://www.cnblogs.com/yxj808/p/13353560.html