首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

如何统计从数据库里取出的数据条数

2013-10-13 
怎么统计从数据库里取出的数据条数list newsService.getList(from News where news_title like %+tit

怎么统计从数据库里取出的数据条数
list = newsService.getList("from News where news_title like '%"+title+"%'", null, 0, 10, null, null);这是我从数据库筛选数据的条件,title是从jsp网页获得的值,怎么统计我获得了多少条数据
[解决办法]
list.size()

热点排行