摘要:--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
|
||
01 2015 档案
摘要:--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
摘要: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
|
||