Why do you create a View in a database?

前端 未结 25 1985
一个人的身影
一个人的身影 2020-11-28 17:10

When and Why does some one decide that they need to create a View in their database? Why not just run a normal stored procedure or select?

25条回答
  •  一向
    一向 (楼主)
    2020-11-28 17:49

    A view is an encapsulation of a query. Queries that are turned into views tend to be complicated and as such saving them as a view for reuse can be advantageous.

提交回复
热议问题