SQL language classification

Source: Internet
Author: User

The main categories are as follows:

1. Data Definition Language (DDL ):

Create table can create tables, alter table can modify the table structure, drop table to delete a table.

2. Data Query Language: The select User retrieves database data.

3. Date Manipulation Language (DML): insert, update, and delete.

4. Date Control Language (DCL ):

Grant is used to grant permissions to a user or role, and revoke revokes the permissions of the user or role.

5. Transaction Control Language (TCL ):

Commit is used to confirm database changes,

Rollback is used to cancel database changes,

Savepoint is used to set the save point to Cancel Changes in some databases.

 

SQL statement writing rules:

SQL keywords, object names, and columns are case-insensitive. However, SQL statements reference character values and date values, which must be case sensitive.

For example, select * from dept t where t. dname = 'sales ';

 

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.