MySQL series: View basic operations

Source: Internet
Author: User
1. Introduction to view 1.1 View definition

A view is a virtual table that is a table from one or more tables in a database.

Views can be defined on the basis of existing views.

Only the definition of the view is stored in the database, and the data in the view is not stored, and the data is stored in the original table.

The data in the view depends on the data in the original table, the data in the table changes, and the data that is displayed in the view changes.

1.2 View Effects

  (1) Increased data security

With views, users can only query and modify the specified data.

The database Authorization command can restrict the user's operation permissions, but not to specific rows and columns. Use a view to restrict a user's permissions to specific rows and columns.

  (2) Improve the logical independence of the table

Views can mask the impact of changes in the original table structure.

The original table structure adds columns and deletes unreferenced columns, without affecting the view.

MySQL series: View basic operations

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.