晨风

-------------------- 业精于勤,荒于嬉;行成于思,毁于随

导航

2015年1月4日

摘要: --sql 2000select 序号 = (select count(1) from tb where 学号 < t.学号) + 1,学号 ,姓名 from tb t--sql 2005select 序号 = row_number() over(order by 学号),学号 ,姓名 from t... 阅读全文

posted @ 2015-01-04 15:48 shenyixin 阅读(8400) 评论(0) 推荐(0) 编辑

摘要: create table tb(id int, value varchar(10))insert into tb values(1, 'aa')insert into tb values(1, 'bb')insert into tb values(2, 'aaa')insert into tb va... 阅读全文

posted @ 2015-01-04 15:38 shenyixin 阅读(1078) 评论(0) 推荐(0) 编辑