以文本方式查看主題 - 昂捷論壇 (http://www.yzsenyi.com/bbs/index.asp) -- □-技術(shù)研討會(huì) (http://www.yzsenyi.com/bbs/list.asp?boardid=36) ---- sql server 中怎么獲取一個(gè)表的前20%的數(shù)據(jù)? (http://www.yzsenyi.com/bbs/dispbbs.asp?boardid=36&id=5009) |
-- 作者:大腦袋 -- 發(fā)布時(shí)間:2009/2/13 16:50:08 -- sql server 中怎么獲取一個(gè)表的前20%的數(shù)據(jù)? 可以這樣 select TOP(20) PERCENT * from tb_test order by c_a |