我的查询中有单引号问题:
myquery =" select x from sometable where x = 'abc' ";
String enc = URLEncoder.encode(myquery, "utf-8");
enc 的结果:x%3D%27abc%27
然后我使用HTTP Connection用php文件//解析 myquery 。我收到错误:
Errorquery:从sometable中选择x,其中x = \'abc \'
myquery (单引号/'abc')有问题吗?