🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.database
Article #816

[FAQ]What are difference between DDL, DML and DCL

#816
From: Galaxy��VOLUNTEERS��Database
Date: Thu, 13 Nov 2008 12:40
35 lines
2126 bytes
What are the difference between DDL, DML and DCL commands? 
DDL is Data Definition Language statements. 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 
GRANT - gives user's access privileges to database 
REVOKE - withdraw access privileges given with the GRANT command 
DML is Data Manipulation Language statements. 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 
CALL - call a PL/SQL or Java subprogram 
EXPLAIN PLAN - explain access path to data 
LOCK TABLE - control concurrency 
DCL is Data Control Language statements. Some examples: 

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 what rollback segment to 
use 
 
 
--
Welcome to Database Board
��ӭ������ݿ��
http://bbs.sjtu.edu.cn/bbsdoc?board=database

�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 207.46.55.30]
Technical Details
Message-ID: <4d31cE$aee@bbs.sjtu.edu.cn>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!newshub.sdsu.edu!newsgate.cuhk.edu.hk!news.neu.edu.cn!news.shec6.edu.cn!SJTU

Show Full Headers
Complete Article Headers
X-Google-Thread: 101948,20de60dc19932753,start
X-Google-Attributes: gid101948,domainid0,public,usenet
X-Google-Language: ENGLISH,GB
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!newshub.sdsu.edu!newsgate.cuhk.edu.hk!news.neu.edu.cn!news.shec6.edu.cn!SJTU
From: Dem.bbs@bbs.sjtu.edu.cn (Galaxy��VOLUNTEERS��Database)
Newsgroups: cn.bbs.comp.database
Subject: [FAQ]What are difference between DDL, DML and DCL
Date: 13 Nov 2008 12:40:26 GMT
Organization: ��ˮ˼Դ
Message-ID: <4d31cE$aee@bbs.sjtu.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: database/M.1226580014.A