MySQL View modification and view Update syntax instance

Source: Internet
Author: User
Tags mysql tutorial mysql view

We talked about the view created in the front, today this tutorial we will talk about the MySQL tutorial view changes and updates.

View Modifications .

Grammar:

Alter [Algorithm ={undefined |merge | temptable}] View view_name [(collist)] as SELECT [with [Case |local] Check option]

Let's start by creating a simple view

Create or Replace view 111cnNet as SELECT * from net111 where id=5;

Above is a query www.111cn.net table with a record with ID 5 in the View creation statement We are going to modify the MySQL view of the query id=6 or 7

Alter VIEW 111cnNet AS SELECT * from net111 where ID in (6,7) and url= ' http://www.111cn.net ';

So the view above is modified.

Original articles reproduced in this site annotated from http://www.111cn.net/database/database.html

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.