学习,需要交流,欢迎大家和我共同来学习C#,ASP.NET,MS SQL Server开发Web项目,欢迎大家和我交流
更新颜色编码为4位的不重复自动编号:
update a set a.No=b.Nub from M_Color a,(SELECT ColorID, RIGHT('0000' + CAST(ROW_NUMBER() OVER (ORDER BY ColorID) AS VARCHAR(10)), 4) as Nub FROM M_Color) bwhere a.ColorID=b.ColorID
Powered by: 博客园 Copyright © 2024 edrp.cn Powered by .NET 9.0 on Kubernetes