MySQL Operating language

Source: Internet
Author: User
Database manipulation language DML; database query Language DQL; Database schema definition language DDL; Database control Language DCL; DDL database schema definition language View all the user's database, show databases; the command to delete the database is: Drop the database name; Finally, the database switch, the command is: Use database name, 2.DDL operation table, mainly including the creation of tables, Modifications, deletions, and so on. The modification of the table includes adding and subtracting columns, modifying columns, modifying table names, and so on. First of all, the need to use ethics to query the database of all the operations of the table, the command is: show tables; the command to view the table structure is: DESC table name; add column command: ALTER TABLE name add new column name, delete column command: ALTER TABLE Table name drop column name; the command to modify the column type is: ALTER TABLE name modify column name is the new type; the command to modify column names is: ALTER TABLE table name change column name new column name new column type; To a new table name; the command to delete a table is: drop table name; ========================================================================================= DML Database Manipulation Language DQL database query Language DCL Database control language

MySQL Operating language

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.