当查询条件参数值中出现字符串或者时间格式的时候必须用单引号修饰
例如:
"from TCharge where substore.id="+subId+" and summary.pid="+summaryId+" and beginTime >='"+beginDate+"' and beginTime<='"+endDate+"' order by beginTime desc";
当查询条件参数值中出现字符串或者时间格式的时候必须用单引号修饰 例如: "from TCharge where substore.id="+subId+" and summary.pid="+summaryId+" and beginTime >='"+beginDate+"' and beginTime<='"+endDate+"' order by beginTime desc"; |