TSQL: UPDATE with INSERT INTO SELECT FROM

前端 未结 7 2223
感情败类
感情败类 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 06:04

    AFAIK, you cannot update two different tables with a single sql statement

    You can however use triggers to achieve what you want to do.

提交回复
热议问题