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

首頁 > 開發 > 綜合 > 正文

SQL中的DDL,DML,DCL語言

2024-07-21 02:44:59
字體:
來源:轉載
供稿:網友
   感覺自己是比較笨的,學習過SQL語言,但是卻分不太清楚DDL、DML、DCL語言,所以呢,今天就厚著臉皮問了老師,現在就自己目前的了解來總結一下。

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

     DDL語句不會產生還原數據,所以刪除的數據也是無法恢復的



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)數據操縱魚語言


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)數據控制語言


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
感覺是要好那么一點了,至少不那么糊涂了,畢竟自己也學了那么久,不能什么都不知道三,不能只曉得就一個create、update、drop,嘿嘿?。?! 
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 宜宾市| 宁夏| 岳池县| 上犹县| 常州市| 万全县| 凭祥市| 从化市| 托里县| 新干县| 扶风县| 永济市| 浦东新区| 陈巴尔虎旗| 东阿县| 湄潭县| 济南市| 宁都县| 台北县| 南雄市| 永顺县| 慈利县| 平谷区| 宣威市| 潮州市| 文化| 东阿县| 大邑县| 凉山| 张家港市| 兴海县| 贡嘎县| 新龙县| 葵青区| 吕梁市| 柞水县| 谷城县| 略阳县| 安乡县| 思南县| 贡觉县|