摘要: 2005比2000新增了几个函数,分别是row_number()、rank()、dense_rank()、ntile(),下面以实例分别简单讲解一下。create table gg(sname varchar(10),sort varchar(10),num int)goinsert into ggselect '白芍','根茎类',55union allselect '法半夏','根茎类',78union allselect '柴胡','根茎类',60union allselect '川芎 阅读全文
posted @ 2011-05-06 16:00 alents 阅读(223) 评论(0) 推荐(0) 编辑