Sql server : Explain Sql commands and their example | ASPMANTRA | Asp.Net,MVC,AngularJs,Jquery,Javascript,Sql Server AND WCF snippets and tutorial

Sql server : Explain Sql commands and their example

Intoduction: In this article today I am going to explain Sql commands and their example.

Sql commands are the set of instructions which are connect/ interact with database to perform specific task.

Types of Sql command:
 Sql commands are grouped into five (5) major categories depending on their functionality. 

 1). DDL: DDL stand for Data Definition Language. These commands are used to creating, modifying, and dropping the structure of database objects. The examples of DDL commands are CREATE, ALTER, DROP, RENAME and TRUNCATE.

2). DQL: DQL stand for Data Query Language. DQL commands are used to retrieve the data from database tables. SELECT is the only example of DQL commands.

3). DML: DML stand for Data Manipulation Language. These commands are used to retrieve, store, modify, and delete data in database tables. The examples of DML commands are UPDATE, INSERT and DELETE.

4). TCL: TCL stand for Transaction Control Language.  TCL commands are used to manage the changes made by DML statements. Examples of DCL command are COMMIT, ROLLBACK, and SAVEPOINT.

5). DCL: DCL stand for Data Control Language. DCL commands are used to implement security on database objects. Examples of DCL command are GRANT and REVOKE.

In this article we have discussed Sql command and their example. I hope you enjoyed this article. 

Post a Comment

[blogger]

MKRdezign

Contact Form

Name

Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget