首页 极刻 圈子 教程 开源
标签 maxid 相关标签 articleid hibernate integer max uniqueresult

使用Hibernate获取最大值(max)的三种方法

maxId=(Integer)(session.createSQLQuery(sql).addScalar("maxId",Hibernate.INTEGER)).uniqueResult();同样要注意ArticleId是区分大小写的!

稻草誓言 2010-04-13 19:01:41

Hibernate -- 使用Hibernate获取最大值(max)的三种方法

maxId=(Integer)(session.createSQLQuery(sql).addScalar("maxId",Hibernate.INTEGER)).uniqueResult();同样要注意ArticleId是区分大小写的!

虽然我很菜 2010-09-03 14:17:29

一个JS翻页效果

document.getElementById("pic").src = curId + ".htm";if ( curId < 1 ) curId = 1;if ( curId > maxId ) curId = maxId;

软件设计 2017-05-10 09:54:22

推荐极客

Blaze Blaze fundebug fundebug 80407013 80407013 84214254 84214254 86593278 86593278 81701295 81701295 ELEMENTS爱乐冬雨 ELEMENTS爱乐冬雨 89236831 89236831

优质内容社区

首页 文章 极刻 开源 标签 关于我们

© 安科网. All rights reserved.