jsp怎么設(shè)置倒序?
比如查詢時(shí)SQL語(yǔ)句是select * form Emp order by empNo desc,然后把查詢到的數(shù)據(jù)放到List集合中,你在JSP頁(yè)面循環(huán)輸出List集合,這時(shí)你就會(huì)發(fā)現(xiàn)顯示的數(shù)據(jù)是根據(jù)empNo這一列來(lái)進(jìn)行倒序排列的
jsp怎么設(shè)置倒序?
比如查詢時(shí)SQL語(yǔ)句是select * form Emp order by empNo desc,然后把查詢到的數(shù)據(jù)放到List集合中,你在JSP頁(yè)面循環(huán)輸出List集合,這時(shí)你就會(huì)發(fā)現(xiàn)顯示的數(shù)據(jù)是根據(jù)empNo這一列來(lái)進(jìn)行倒序排列的