摘要: SQL2005中row_number()等函数的用法 [转]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 '川芎','根茎类',99union allsel 阅读全文
posted @ 2011-01-26 18:05 sunfny 阅读(275) 评论(0) 推荐(0) 编辑