当查询条件参数值中出现字符串或者时间格式的时候必须用单引号修饰
例如:
"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";
转载于:https://www.cnblogs.com/fish-king/archive/2012/09/13/2682774.html