string inputStr = "...你懂的...."; inputStr = inputStr.Replace("'", ""); string strwhere = "select * from tb where" + string.Format("kk='{0}'", inputStr);
tring inputStr = "...你懂的...."; inputStr = inputStr.Replace("'", "");把'号置为空 string strwhere = "select * from tb where" + string.Format("kk='{0}'", inputStr);//同strwhere = "select * from tb where" +inputStr;只是赋值而已;
22,300
社区成员
121,734
社区内容
加载中
试试用AI创作助手写篇文章吧