开发者社区> 问答> 正文

What are MySQL “Views”?

已解决

What are MySQL “Views”?

展开
收起
1780169608831412 2021-10-16 16:48:48 476 0
2 条回答
写回答
取消 提交回答
  • 网络规划设计师、敏捷专家、CISP、ITSS服务经理、ACA全科目、ACP4项、ACE、CBP、CDSP、CZTP等。拥有 PRINCE2 Foundation/Practitioner、CCSK、ITIL、ISO27001、PMP等多项国际认证。 专利5+、期刊10+、知识产权师。核心期刊审稿人。
    采纳回答

    In MySQL, a view consists of a set of rows that is returned if a particular query is executed. This is also known as a ‘virtual table’. Views make it easy to retrieve the way of making the query available via an alias. The advantages of views are:

    Simplicity
    Security
    Maintainability
    
    2021-10-16 17:26:20
    赞同 2 展开评论 打赏
  • MySQL view It is a virtual table. Like the real table, the view is also composed of columns and rows, but the view does not actually exist in the database. The data of rows and columns comes from the tables used in the query defining the view, and is dynamically generated when using the view. Only the definition of the view is stored in the database, not the data in the view. These data are stored in the query defining the view Query the referenced real table. When using a view to query data, the database will retrieve the corresponding data from the real table. Therefore, the data in the view depends on the data in the real table. Once the data in the real table changes, the data displayed in the view will also change. The view can select information useful to the user from the original table, which is useless to the user, or Information that users do not have permission to know can be directly blocked, which is similar to filtering. This not only simplifies the application, but also ensures the security of the system

    2021-10-16 17:21:36
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
One Box: 解读事务与分析一体化数据库 HybridDB for MySQL 立即下载
One Box:解读事务与分析一体化数据库HybridDB for MySQL 立即下载
如何支撑HTAP场景-HybridDB for MySQL系统架构和技术演进 立即下载

相关镜像