Introduce DataBase,Asp.net,JavaScript,Xml,Html,Css,Sql,Php,ASP.NET Controls,AJAX,Tools,HTML,CSS,JavaScript,Open Source Project,WPF,.Net Framework,Linq
Top Recommended Hosting

Sql: Types of SQL Commands

by the3factory 2/29/2008 6:42:00 AM

The main categories are

  • DDL (Data Definition Language)

  • DML (Data Manipulation Language)

  • DQL (Data Query Language)

  • DCL (Data Control Language)

  • Data administration commands

  • Transactional control commands

Defining Database Structures
Some of the most fundamental DDL commands discussed during following hours include the following:
 
CREATE TABLE
 
 
ALTER TABLE
 
 
DROP TABLE
 
 
CREATE INDEX
 
 
ALTER INDEX
 
 
DROP INDEX
 
 
CREATE VIEW
 
 
DROP VIEW

Manipulating Data

There are three basic DML commands:

INSERT

 

UPDATE

 

DELETE
 

 

Data Control Language

Data control commands in SQL allow you to control access to data within the database. These DCL commands are normally used to create objects related to user access and also control the distribution of privileges among users. Some data control commands are as follows:

ALTER PASSWORD

 

GRANT

 

REVOKE

 

CREATE SYNONYM
 
 
 

Transactional Control Commands

In addition to the previously introduced categories of commands, there are commands that allow the user to manage database transactions.

  • COMMIT Saves database transactions

  • ROLLBACK Undoes database transactions

  • SAVEPOINT Creates points within groups of transactions in which to ROLLBACK

  • SET TRANSACTION Places a name on a transaction

Tags:

SQL

Related posts

Sign up for PayPal and start accepting credit card payments instantly.


Powered by BlogEngine.NET 1.2.0.0