Oracle DDL,DML,DCL,TCL 基礎概念

          Posted on 2010-08-17 16:50 林光炎 閱讀(762) 評論(0)  編輯  收藏 所屬分類: ORACLE
          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


          作者:李敬然(Gnie)
          出處:{GnieTech} (http://www.cnblogs.com/gnielee/)
          版權聲明:本文的版權歸作者與博客園共有。轉載時須注明本文的詳細鏈接,否則作者將保留追究其法律責任。

          posts - 104, comments - 33, trackbacks - 0, articles - 0

          Copyright © 林光炎

          主站蜘蛛池模板: 卫辉市| 自贡市| 乐昌市| 绍兴市| 苏尼特右旗| 峡江县| 焦作市| 皮山县| 株洲县| 宜兰市| 东宁县| 阳江市| 石嘴山市| 凤阳县| 阿城市| 肃宁县| 寿阳县| 武穴市| 桂平市| 团风县| 泰州市| 通榆县| 伊通| 霍城县| 苍溪县| 绍兴县| 新平| 蓬安县| 长子县| 麻阳| 韶山市| 阳泉市| 兴宁市| 双鸭山市| 留坝县| 突泉县| 华安县| 丰顺县| 杭锦后旗| 山东省| 赤城县|