75. ID重新走过,备份表

Posted on 2015-06-30 12:02  zkx4213  阅读(126)  评论(0编辑  收藏  举报
select * into ML_QuoteApply_InPro_bak20150629 from ML_QuoteApply_InPro

truncate table ML_QuoteApply_InPro

select identity(int,1,1) id,Product,MatCode,Name,Class,Price,ActualPrice,Num,RePrice,ReBate,ReMoney,Money,FootPrice,FootMoney,System,Type,Remark,ML_QuoteApply_ID
into #temp_InPro
from ML_QuoteApply_InPro_bak20150629

insert into ML_QuoteApply_InPro(id,Product,MatCode,Name,Class,Price,ActualPrice,Num,RePrice,ReBate,ReMoney,Money,FootPrice,FootMoney,System,Type,Remark,ML_QuoteApply_ID)
select id,Product,MatCode,Name,Class,Price,ActualPrice,Num,RePrice,ReBate,ReMoney,Money,FootPrice,FootMoney,System,Type,Remark,ML_QuoteApply_ID
from #temp_InPro

select * from ML_QuoteApply_InPro order by id 

drop table #temp_InPro 

Copyright © 2024 zkx4213
Powered by .NET 8.0 on Kubernetes