SQL Server: Is it possible to insert into two tables at the same time?

后端 未结 11 1394
青春惊慌失措
青春惊慌失措 2020-11-22 16:22

My database contains three tables called Object_Table, Data_Table and Link_Table. The link table just contains two columns, the identi

11条回答
  •  旧巷少年郎
    2020-11-22 16:52

    If you want the actions to be more or less atomic, I would make sure to wrap them in a transaction. That way you can be sure both happened or both didn't happen as needed.

提交回复
热议问题