我的sql语句为 SELECT staff,AVG(IF((CompleteTime-ThirdDamageTime) IS NULL,86400,(CompleteTime-ThirdDamageTime))) as CT
FROM Report WHERE 1=1使用session.createSQLQuery(wheresql); 就会报错java.sql.SQLException: Column '' not found.
如果使用session.createQuery(wheresql) 就直接出现空指针异常
我该怎么解决啊?
FROM Report WHERE 1=1使用session.createSQLQuery(wheresql); 就会报错java.sql.SQLException: Column '' not found.
如果使用session.createQuery(wheresql) 就直接出现空指针异常
我该怎么解决啊?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货