ssh获取数据表中最大id(最后一条记录)的hql语句

String hql="from mytable t where t.id= (select max(t.id) from t)";

猜你喜欢

转载自yzl495.iteye.com/blog/2390499