惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
GbyAI
GbyAI
aimingoo的专栏
aimingoo的专栏
L
LangChain Blog
I
InfoQ
D
Docker
F
Fortinet All Blogs
Y
Y Combinator Blog
Martin Fowler
Martin Fowler
月光博客
月光博客
B
Blog
Engineering at Meta
Engineering at Meta
T
Tailwind CSS Blog
罗磊的独立博客
博客园_首页
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
Recent Announcements
Recent Announcements
D
DataBreaches.Net
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog RSS Feed
IT之家
IT之家
V
V2EX

博客园 - 没有空气

修改win7电脑中所有文件的默认查看方式 转:Google推出免费DNS服务,首选首选8.8.8.8 备选8.8.4.4 无法在Web服务器上启动调试。您不具备调试此应用程序的权限,此项目的URL位于Internet区域 Oracle错误:"ORA-00988: 口令缺失或无效"解决 Oracle中用户用as sysdba可以登录,但normal登录不了 oracle 视图上创建触发器,发生“无法在视图上创建此类型的触发器”错误 异形孔向导用不了的解决办法(转) 给word 2003打补丁以适应2007文档格式 C#编程生成的Word2007版本的文件如何兼容Word2003?(通过代码将docx文件转存为doc文件) 原:Oracle 和 SqlServer下获取主外键表名字段名约束名的语句 sqlserver与oracle case when else ,isnull语法差别 Hashtable 使用GetEnumerator() 时发生 System.InvalidOperationException类型错误 npkcrypt 服务启动失败导致 Oracle11g TNSListener服务开机自动启动不了 WORD"对话框打开时命令无法执行"的解决方法 Nero刻录时报"QueryDosDevice Failed"错误 关于cidaemon.exe进程CUP占用率高的解决办法 取Excel表的字段名字 "找不到可安装的 ISAM” 和"创建文件流失败" 求每个分组里面的最大值对应的记录的sql语句
DDL、DML、DCL
没有空气 · 2008-07-15 · via 博客园 - 没有空气

关系数据库的语言分三类,它们是(数据描述语言DDL)、(数据操纵语言DML)和(数据控制语言DCL),而SQL是(集DDLDMLDCL为一体)的标准关系数据库语言。

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