|
本帖最后由 milaotou 于 2017-7-21 14:07 编辑
sql = String.format("SELECT JHDD_PE_AlertManagement,JHDD_PE_AlertManagement.fProjectName,JHDD_PE_AlertManagement.fCreatePsnName,JHDD_PE_AlertManagement.fCreateTime FROM JHDD_PE_AlertManagement JHDD_PE_AlertManagement where JHDD_PE_AlertManagement.fCreateDeptFID like '"+deptID+"%' order by JHDD_PE_AlertManagement.fCreateTime desc limit 0,6");
Table result = KSQL.select(sql, null, "/JHDD/PlanExecute/data", null);
return result;
上面代码中如果 like '"+deptID+"' 不加%,就不报错,加了就报错
请问是什么问题?
|
|