Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2736415
  • 博文数量: 423
  • 博客积分: 7770
  • 博客等级: 少将
  • 技术积分: 4766
  • 用 户 组: 普通用户
  • 注册时间: 2006-11-09 11:58
个人简介

Oracle/DB2/Postgresql/Mysql/Hadoop/Greenplum/Postgres-xl/Mongodb

文章分类

全部博文(423)

文章存档

2019年(3)

2018年(6)

2017年(27)

2016年(23)

2015年(30)

2014年(16)

2013年(31)

2012年(73)

2011年(45)

2010年(14)

2009年(30)

2008年(30)

2007年(63)

2006年(32)

分类: Oracle

2012-08-28 10:18:15

  • Query statements Allow you to retrieve rows stored in database tables. You write a query using the SQL SELECT statement.

  • Data Manipulation Language (DML) statements Allow you to modify the contents of tables. There are three DML statements:

    • INSERT Allows you to add rows to a table.

    • UPDATE Allows you to change a row.

    • DELETE Allows you to remove rows.

  • Data Definition Language (DDL) statements Allow you to define the data structures, such as tables, that make up a database. There are five basic types of DDL statements:

    • CREATE Allows you to create a database structure. For example, CREATE TABLE is used to create a table; another example is CREATE USER, which is used to create a database user.

    • ALTER Allows you to modify a database structure. For example, ALTER TABLE is used to modify a table.

    • DROP Allows you to remove a database structure. For example, DROP TABLE is used to remove a table.

    • RENAME Allows you to change the name of a table.

    • TRUNCATE Allows you to delete the entire contents of a table.

  • Transaction Control (TC) statements Allow you to permanently record the changes made to the rows stored in a table or undo those changes. There are three TC statements:

    • COMMIT Allows you to permanently record changes made to rows.

    • ROLLBACK Allows you to undo changes made to rows.

    • SAVEPOINT Allows you to set a “savepoint” to which you can roll back changes made to rows.

  • Data Control Language (DCL) statements Allow you to change the permissions on database structures. There are two DCL statements:

    • GRANT Allows you to give another user access to your database structures, such as tables.

    • REVOKE Allows you to prevent another user from accessing to your database structures, such as tables.

阅读(1441) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~