开发者社区> 问答> 正文

What are the different types of statements support

What are the different types of statements supported by SQL?

展开
收起
1780169608831412 2021-10-16 14:21:58 647 0
1 条回答
写回答
取消 提交回答
  • 网络规划设计师、敏捷专家、CISP、ITSS服务经理、ACA全科目、ACP4项、ACE、CBP、CDSP、CZTP等。拥有 PRINCE2 Foundation/Practitioner、CCSK、ITIL、ISO27001、PMP等多项国际认证。 专利5+、期刊10+、知识产权师。核心期刊审稿人。

    a) DDL (Data Definition Language): It is used to define the database structure such as tables. It includes three statements such as CREATE, ALTER, and DROP.

    Also read =>> MySQL Create Table Tutorial

    Some of the DDL Commands are listed below:

    CREATE: It is used for creating the table.

    CREATE TABLE table_name column_name1 data_type(size), column_name2 data_type(size), column_name3 data_type(size), ALTER: The ALTER table is used for modifying the existing table object in the database.

    ALTER TABLE table_name ADD column_name datatype OR

    ALTER TABLE table_name DROP COLUMN column_name b) DML (Data Manipulation Language): These statements are used to manipulate the data in records. Commonly used DML statements are INSERT, UPDATE, and DELETE.

    The SELECT statement is used as a partial DML statement, used to select all or relevant records in the table.

    c) DCL (Data Control Language): These statements are used to set privileges such as GRANT and REVOKE database access permission to the specific user.

    2021-10-16 15:12:29
    赞同 1 展开评论 打赏
问答分类:
SQL
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Informational Referential Integrity Constraints Support in Apache Spark 立即下载
Embracing a hierarchy of types 立即下载
Many-Birds-One-Stone-Exploiting-A-Single-SQLite-Vulnerability-Across-Multiple-Software 立即下载