TSQL: UPDATE with INSERT INTO SELECT FROM

前端 未结 7 2368
感情败类
感情败类 2021-02-08 05:11

so I have an old database that I\'m migrating to a new one. The new one has a slightly different but mostly-compatible schema. Additionally, I want to renumber all tables from

7条回答
  •  再見小時候
    2021-02-08 05:58

    Make a column in MV6.Post.OldMV5Id

    make a insert into MV6.Post select .. from MV5.Post

    then make an update of MV5.Post.MV6ID

提交回复
热议问题