Why is database view used?

后端 未结 4 1989
[愿得一人]
[愿得一人] 2021-01-04 07:25

Is using \"view\" in db design right method or we should handle it code side? What are the advantages or disadvantages?

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-04 08:12

    Some database systems do not support embedding a SELECT statement inside a FROM clause. If you are using a system that does not support this feature, you can often save the inner SELECT statement as a view, and use the view name in place of the select statement.

    So it provides behavior that can be missing in some db implementations.

提交回复
热议问题