国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數(shù)據(jù)庫 > SQL Server > 正文

SQL中的DDL,DML,DCL語言

2019-11-03 08:35:00
字體:
供稿:網(wǎng)友
   感覺自己是比較笨的,學(xué)習(xí)過SQL語言,但是卻分不太清楚DDL、DML、DCL語言,所以呢,今天就厚著臉皮問了老師,現(xiàn)在就自己目前的了解來總結(jié)一下。

1、DDL(DATA DEFINITION LANGUAGE)數(shù)據(jù)描述語言

     DDL語句不會(huì)產(chǎn)生還原數(shù)據(jù),所以刪除的數(shù)據(jù)也是無法恢復(fù)的



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

2、DML(DATA MANipULATION LANGUAGE)數(shù)據(jù)操縱魚語言


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

3、DCL(DATA CONTROL LANGUAGE)數(shù)據(jù)控制語言


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
感覺是要好那么一點(diǎn)了,至少不那么糊涂了,畢竟自己也學(xué)了那么久,不能什么都不知道三,不能只曉得就一個(gè)create、update、drop,嘿嘿!!! 
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 鄂州市| 平昌县| 错那县| 米林县| 梨树县| 涞水县| 抚顺县| 漯河市| 石柱| 岱山县| 临朐县| 阳春市| 加查县| 科尔| 砚山县| 嘉定区| 根河市| 天祝| 惠来县| 凉城县| 南召县| 白朗县| 延边| 荣昌县| 利川市| 板桥市| 临泉县| 千阳县| 台东市| 抚顺县| 宣武区| 兰坪| 汤原县| 郑州市| 枞阳县| 宜兴市| 溆浦县| 礼泉县| 屯昌县| 奉节县| 舞钢市|