Features of the MYSQL View

Source: Internet
Author: User
Tags mysql view


The execution efficiency of a view is similar to that of a stored nickname. However, the execution efficiency of the simplest single SQL statement is higher. The reason is that the data in the view is not stored in the database as a dataset. Generally, a view does not have data. All its data must be dynamically generated when a view is referenced. Then you execute an SQL statement to query the view. At this time, the view must execute the SQL statement when creating the view to dynamically generate data, in this way, two SQL statements are executed, and only one single SQL statement is used. www.2cto.com is not suitable for the view with a slow view in any situation. Compared with the stored procedure, views are more inclined to protect data security. Set access restrictions to create a view: create view viewname as select statement Delete view: drop view viewname author justice85

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.