2013年10月12日星期六

How statistical data retrieved from the database the number

list = newsService.getList ("from News where news_title like '%" + title + "%'", null, 0, 10, null , null); this is my condition to filter the data from the database , title is the value obtained from the jsp page , how I got how many statistical data
------ Solution ------- -------------------------------------
list.size ()
- ---- For reference only ---------------------------------------
, I express a mistake, want to say is not the case , but so ask your answer really is such
------ For reference only ---------------- -----------------------
, I express a mistake, want to say is not the case , but so ask this really is your answer  
a statement exposes you two questions: one , the statement spell sql, have injected risk, and performance can be affected ; 2 , the total number of very simple query sql Why must use hibernate query object methods , sql Total or hibernate query statement can be, it will certainly affect performance , especially when large amounts of data

没有评论:

发表评论