MySQL additions and deletions (supplemental)

Source: Internet
Author: User

DDL: Database Definition language
Primarily used to define databases, tables, views, indexes, triggers, and more
Create: Primarily for creating databases, creating tables, and creating views
Alter: Primarily used to modify the definition of a table, modify the definition of a view
Drop: Primarily used to delete databases, delete tables, and views

DML: Data Manipulation language
Used primarily for inserting data, querying data, updating data, and deleting data
Insert: for inserting data
Select: For querying data
Update: for updating data
Delete: Used to delete data

DCL: Data Control Language
Primarily used to control the user's access rights
Grant: Used to add permissions to a user
Revoke: Permission to reclaim a user

MySQL Date and Time type
Integer type 0 value
Year 0000
Date 0000:00:00
Time 00:00:00
DateTime 0000-00-00 00:00:00
Timestamp 00000000000000 Note: The range of values is not a datetime large

Enum type
Attribute name enum (' Value ', ' value ', ' Value n ')

MySQL additions and deletions (supplemental)

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.