SQL language DDL DML DCL tcl four languages

Source: Internet
Author: User
Tags create index

1.DDL (data definition Language) database definition language: DDL gives us the ability to create or delete tables. You can define indexes (keys), specify links between tables, and impose constraints between tables.

? Common DDL Statements:

–create database (creating new databases)

–alter database (modifying databases)

–create table (Create new table)

–alter Table (change (change) database table)

–drop table (deleting tables)

–create index (search key)

–drop Index (delete index)

2? DML (data manipulation Language) Manipulation language: Provided by the DBMS for use by the user or programmer,

Implement operations on data in the database.

? Common DML Statements:

–select (fetching data from a database table)

–update (updating data in a database table)

–delete (deleting data from a database table)

–insert into (inserting data into a database table)

.3.DCL (Data Control Language) database Control Language Authorization, role control, etc.

–grant (Authorized)

–revoke (Cancellation of Authorization)

? 4. TCL (Transaction control Language) transaction Control Language

–savepoint (set save point)

–rollback (rollback)

–commit (Commit data (from memory update to physical file))

SQL language DDL DML DCL tcl four languages

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.