UPDATE t_users SET t_users.id=u.num1 FROM t_users INNER JOIN (SELECT row_number() over(order by id) AS num1,UserName FROM t_users) u ON u.UserName=t_users.UserName
Powered by: 博客园 Copyright © 2024 hehoge Powered by .NET 9.0 on Kubernetes