MySQL View Knowledge Point Summary

Source: Internet
Author: User
Tags mysql view

The view itself is a virtual table and does not hold any data. When accessing a view using an SQL statement, the data it returns is generated by MySQL from other tables. Views and tables are in the same namespace,

MySQL treats views and tables the same way in many places. Views and tables are different, though. For example, you cannot create a trigger on a view or delete a view with the drop TABLE command.

Implementation of the View algorithm:

Merge algorithm: Merge

Temporal table algorithm: tmptable

Updatable views (updatable view): Updates the view to update related tables that are involved in the view.

If the view definition contains group BY, Union, aggregate functions, and some other special cases, it cannot be updated. A query that updates a view can also be an associative statement, but with one restriction, the column being updated must be from the same table. In addition, all views implemented using the Temporal table algorithm cannot be updated.

Check option: Represents any row that is updated through the view and must conform to the Where condition definition of the view itself.

MySQL does not support creating indexes on views.

MySQL does not support building any triggers on the view.

Http://zhumeng8337797.blog.163.com/blog/static/10076891420111017104659929/?suggestedreading&wumii

Related Article

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.