HQL语句的问题
帮忙看一下这个语句有问题吗?public void delete(int id) throws Exception {
String hql = "delete UsersDto where id="+id;
Query q = super.getSession().createQuery(hql);
q.executeUpdate();
super.getSession().beginTransaction().commit();
}
2008-07-01 08:48
2008-07-02 00:10
2008-07-11 17:31