pre { /*控制代码不换行*/ white-space: pre; word-wrap: normal; }
摘要: 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 @ 2012-02-14 00:15 monkey's 阅读(253) 评论(0) 推荐(0) 编辑