Oracle的语言分四类,它们是(数据定义语言DDL)、(数据操纵语言DML)、(数据控制语言DCL) 和 (事务控制语言TCL)
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
分享到:
相关推荐
关于Oracle DDL,DML,DCL,TCL 的一些基础概念,对于初学者很有帮助
the oracle of the DDL, DML, DCL and TCL Category
Oracle常用命令3(DDL、DML、TCL、DCL、序列) Oracle常用命令4(表分区) Oracle常用命令5(同义词、视图、索引) Oracle常用命令6(PL/SQL) Oracle常用命令7(游标) Oracle常用命令8(过程) Oracle常用...
简单介绍Oracle安装,DDL(数据定义语言)、DML(数据操纵语言) DCL(数据控制语言)、TCL(事物控制语言)等数据库相关语言的操作与配置,及需要注意的事项
数据定义语言(DDL),包括CREATE(创建)命令、ALTER(修改)命令、DROP(删除)命令等。 数据操纵语言(DML),包括INSERT(插入)命令、UPDATE(更新)命令、DELETE(删除)命令、SELECT … FOR UPDATE(查询...
oracle数据库语法SQL SQL是啥 结构化查询语言(structured query language),使用SQL可以对数据库进行读写操作。 SQL的分类 ...TCL 事务控制语言(transaction control language),commit(提交)、rollback(回滚)
数据定义语言(DDL): Create(创建), Alter(更改), Drop(删除). 数据操纵语言(DML): Select(选择), Insert(插入), Update(更新), Delete(删除). 事务控制语言(TCL) : Commit(提交), ...
SQL语言分为四种,分别是:数据定义语言(DDL)、数据操纵语言(DCL)、事务控制语言(TCL)、数据控制语言(DML)。 1.1 数据定义语言(DDL) 建立、修改、删除数据库对象,如数据库、表、视图等。数据定义语言...
DDL ( Data Definition Language ) 数据定义语言 DML ( Data Manipulation Language ) 数据操作语言 DCL ( Data Control Language ) 数据控制语言 TCL (Transaction Control Language ) 事务控制语言 ※ 事务是...
事务控制语言(Transactional Control Language,TCL),用于维护数据的一致性,包括COMMIT(提交事务)、ROLLBACK(回滚事务)和SAVEPOINT(设置保存点)3条语句 二、 Oracle的数据类型 类型 参数 描述 字符类型...
有关oracle10g的知识总结 1.SQL语句分类 (1).查询语句——select (2).数据操作语句(DML):insert into 、delete、update、merge (3).数据定义语句(DDL):create 、alter、drop、truncate (4).数据控制语句(DCL):...
数据操作语句(DML): 包括增(insert)、 删(delete)和 改(update)。 数据定义语句(DDL): 用于建立(create)、 修改(alter)和 删除数据库对象(drop)。《会自动提交事务》 数据控制语句...
SQL语句分类(DDL、DML、DQL、DCL) 内容简介 第五部分 SQL优化 优化器 SQL语句执行过程 SQL优化术语 第一部分 SQL基础 SQL简介 发展历史 SQL语句分类 DDL[Data Definition Language] DML[Data Manipulation ...