摘要:
CREATE TABLE table1( [ID] [bigint] IDENTITY(1,1) NOT NULL, [Name] [nvarchar](128) NOT NULL, [class] int not null, [date] datetime not null)class 表示分类编号。 分类数不固定, 至少有上千种分类 date 表示该条记录被更新的时间 我们现在想获得每个分类最新被更新的5条记录。解决方案select id,name,class,date from(select id,name,class,date ,row_number() ove... 阅读全文
posted @ 2010-01-05 20:48
曾祥展
阅读(1465)
评论(0)
推荐(0)

浙公网安备 33010602011771号