首 页IT知识库翔宇问吧收藏内容
当前位置:翔宇亭IT乐园IT知识库数据库Oracle

带你认识oracle中的DDL、DML、DCL

减小字体 增大字体 作者:不详  来源:华军资讯  发布时间:2010-02-11 11:02:00

       DDL

  Data Definition Language (DDL) statements are used to define the database structure or schema. Some examples:

  CREATE - to create objects in the database
  ALTER - alters the structure of the database
  DROP - delete objects from the database
  TRUNCATE - remove all records from a table, including all spaces allocated for the records are removed
  COMMENT - add comments to the data dictionary
  RENAME - rename an object

  DML

  Data Manipulation Language (DML) statements are used for managing data within schema objects. Some examples:

  SELECT - retrieve data from the a database
  INSERT - insert data into a table
  UPDATE - updates existing data within a table
  DELETE - deletes all records from a table, the space for the records remain
  MERGE - UPSERT operation (insert or update)
  CALL - call a PL/SQL or Java subprogram
  EXPLAIN PLAN - explain access path to data
  LOCK TABLE - control concurrency

  DCL

  Data Control Language (DCL) statements. Some examples:
  GRANT - gives user's access privileges to database
  REVOKE - withdraw access privileges given with the GRANT command

  TCL

  Transaction Control (TCL) statements are used to manage the changes made by DML statements. It allows statements to be grouped together into logical transactions.

  COMMIT - save work done
  SAVEPOINT - identify a point in a transaction to which you can later roll back
  ROLLBACK - restore database to original since the last COMMIT
  SET TRANSACTION - Change transaction options like isolation level and what rollback segment to use

微信搜索“优雅的代码”关注本站的公众号,或直接使用微信扫描下面二维码关注本站公众号,以获取最新内容。

个人成长离不开各位的关注,你的关注就是我继续前行的动力。

Tags:oracle DDL DML DCL

知识评论评论内容只代表网友观点,与本站立场无关!

   评论摘要(共 0 条,得分 0 分,平均 0 分) 查看完整评论
愿您的精彩评论引起共鸣,带来思考和价值。
用户名: 查看更多评论
分 值:100分 90分 80分 70分 60分 40分 20分
内 容:
验证码:
关于本站 | 网站帮助 | 广告合作 | 网站声明 | 友情连接 | 网站地图
本站部分内容来自互联网,如有侵权,请来信告之,谢谢!
Copyright © 2007-2022 biye5u.com. All Rights Reserved.