只获取一条重复数据的方法.sql 177 B

1234
  1. use [dbmsg]
  2. select * into [dbmsg].[dbo].[unauth_back1] from
  3. (select no=row_number() over(partition by name order by getdate()),* from [dbmsg].[dbo].[unauth]) as t where no=1