MySQL database creation and deletion instance

Source: Internet
Author: User
Tags mysql tutorial create database

Create DATABASE syntax

Create DATABASE Tutorial Name

Used to create a database and name it. If you want to use the CREATE DATABASE, you will need to get the DB Create permission.

ALTER TABLE syntax

alter [ignore] table Tbl_name

ALTER TABLE is used to change the structure of an existing table. For example, you can add or subtract columns, create or cancel an index, change the type of an existing column, or rename a column or table. You can also change the annotation of the table and the type of the table.

The syntax of many clauses is similar to the syntax of the clauses in CREATE table in the allowed changes. These include table_options modifications, options with engine, auto_increment and Avg_row_length

Note:

To use ALTER TABLE, you need to obtain alter, INSERT, and create permissions for the table

Ignore is an extension of the MySQL tutorial relative to standard SQL. If you have duplicate keywords in a new table, or if a warning occurs after strict mode starts

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.