If I update a view, will my original tables get updated

前端 未结 3 939
無奈伤痛
無奈伤痛 2020-12-30 19:20

Hypothetically I have two tables Employee and Locations. Additionaly I have a view viewEmpLocation which is made by joining Employee and Locations.

If I update the v

3条回答
  •  梦毁少年i
    2020-12-30 19:45

    You could use a trigger on the view to do an insert/update/delete to the actual tables.

    http://www.devarticles.com/c/a/SQL-Server/Using-Triggers-In-MS-SQL-Server/1/

提交回复
热议问题