Are Views automatically updated

前端 未结 6 1405
谎友^
谎友^ 2021-02-02 05:40

If I JOIN or CROSS APPLY two tables and create a VIEW, will the view automatically gets updated when I update either of the two tables or

6条回答
  •  梦谈多话
    2021-02-02 05:59

    Yes, a view is a SELECT query against underlying tables/views. If you modify data in the underlying table(s), and if that range is included in the view definition then you will see the modified data.

提交回复
热议问题