今天是SQL语句写错。
String type
String hql="select * from t_user where type="+type;
这里应该改为 String hql="select * from t_user where type='"+type+"'";
org.hibernate.exception.SQLGrammarException: could not extract ResultSet
猜你喜欢
转载自alleni123.iteye.com/blog/2007936
今日推荐
周排行