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

          Posted on 2010-08-17 16:50 林光炎 閱讀(771) 評論(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 © 林光炎

          主站蜘蛛池模板: 贡嘎县| 宁夏| 广东省| 昭觉县| 牙克石市| 澄江县| 武穴市| 潞西市| 乌兰察布市| 怀安县| 万安县| 成武县| 南丹县| 桂林市| 恩施市| 太康县| 金堂县| 陆丰市| 许昌县| 青阳县| 昌黎县| 琼中| 韶关市| 邮箱| 青神县| 依兰县| 龙陵县| 枣强县| 汉川市| 和政县| 孙吴县| 钟祥市| 深泽县| 崇明县| 邳州市| 建瓯市| 绥宁县| 开封县| 长沙市| 铜鼓县| 饶河县|