• DML、DCL、DDL


    DML(data manipulation language)数据操纵语言:
         SELECT、UPDATE、INSERT、DELETE。 主要用来对数据库的数据进行一些操作。
    1.SELECT - retrieve data from the a database    查询
     
    2.INSERT - insert data into a table添加
     
    3.UPDATE - updates existing data within a table    更新
     
    4.DELETE - deletes all records from a table, the space for the records remain   删除
     
    5.CALL - call a PL/SQL or Java subprogram
     
    6.EXPLAIN PLAN - explain access path to data

    7.LOCK TABLE - control concurrency 锁,用于控制并发
    DDL(data definition language)数据库定义语言:
        创建表的时候用到的一些sql,比如说:CREATE、ALTER、DROP等。DDL主要是用在定义或改变表的结构,数据类型,表之间的链接和约束等初始化工作上。
    1.CREATE - to create objects in the database   创建
     
    2.ALTER - alters the structure of the database   修改
     
    3.DROP - delete objects from the database   删除
     
    4.TRUNCATE - remove all records from a table, including all spaces allocated for the records are removed
     
    TRUNCATE TABLE [Table Name]。
     
    5.COMMENT - add comments to the data dictionary 注释
     
    6.GRANT - gives user's access privileges to database 授权
     
    7.REVOKE - withdraw access privileges given with the GRANT command   收回已经授予的权限
    DCL(Data Control Language)数据库控制语言:
        是用来设置或更改数据库用户或角色权限的语句,包括(grant,deny,revoke等)语句。这个比较少用到。
    1.COMMIT - save work done 提交
     
    2.SAVEPOINT - identify a point in a transaction to which you can later roll back 保存点
     
    3.ROLLBACK - restore database to original since the last COMMIT   回滚
     
    4.SET TRANSACTION - Change transaction options like what rollback segment to use   设置当前事务的特性,它对后面的事务没有影响       

  • 相关阅读:
    TypeScript 学习笔记 – Handbook 1
    JavaScript – 解构赋值 Destructuring Assignment
    E Multigate (湖北省) (贪心+位运算)
    Kangaroo Puzzle (南京 )(模拟+贪心吧) (遇到上下左右的写法:利用数组+%)
    Adrien and Austin (南京A题) (博弈)
    Pyramid (打表找规律+逆元) (南京赛)
    Mediocre String Problem (manacher+扩展kmp+差分)
    扩展kmp
    马拉车(求最长回文字串长度)
    wa,runtimeerror,tle后
  • 原文地址:https://www.cnblogs.com/fenqinearl/p/11042431.html
Copyright © 2020-2023  润新知