Sql 更新一列为行号
摘要:
update employeeset emp_id=t1.rowIdfrom( --select * from --( select Emp_UserName,ROW_NUMBER() over(Order by emp_username) as rowId from employee ) as t1 where t1.Emp_UserName=employee.Emp_UserName--) as thttp://social.msdn.microsoft.com/Forums/zh-CN/sqlserverzhchs/thread/6160088e-524f-412c-93be-e76.. 阅读全文
posted @ 2012-06-11 22:06 悉野 阅读(3164) 评论(0) 推荐(0) 编辑