DML
DML is abbreviation of Data Manipulation Language. It is used to retrieve, store, modify, delete, insert and update data in database.
Examples: SELECT, UPDATE, INSERT statements
DDL
DDL is abbreviation of Data Definition Language. It is used to create and modify the structure of database objects in database.
Examples: CREATE, ALTER, DROP statements
DCL
DCL is abbreviation of Data Control Language. It is used to create roles, permissions, and referential integrity as well it is used to control access to database by securing it.
Examples: GRANT, REVOKE statements
TCL
TCL is abbreviation of Transactional Control Language. It is used to manage different transactions occurring within a database.
Examples: COMMIT, ROLLBACK statements
Reference : Pinal Dave (http://www.SQLAuthority.com)






Dave!
DDL: CREATE, ALTER, DROP
DML: SELECT, INSERT, UPDATE, DELETE
Sorry! :)
Thanks Mate,
I have modified my post to reflect that. I think I typed too quickly.
Regards,
Pinal Dave ( http://www.SQLAuthority.com )
ok
DDL : CREATE, ALTER, DROP
DML : INSERT, UPDATE, DELETE
DCL : GRANT, REVOKE
TCL : COMMIT, SAVE POINT, ROLLBACK
DQL : SELECT
thanks a lot for this blog
Hi Mr.Dave,
I am so impressed with ur resume, and I wish u all success,
I am new to MS SQL server and I am looking for an example that can show me how to use DDL statements of MS SQL server for how to create a table (for example):
Table name= Sales
Sales ( CustomerNo, ItemNo, Price, quant, TotalAmount )
Primary key ( CustomerNo, ItemNo)
Foriegne Key (CustomerNo)
Constraint ( quant in sales table must be = < item balance in inventory table ).
I would highly appreciate ur kind info
Many thanks and regards
Adnan
What about DECLARE and SET? I read posts about not mixing DDL and DML due to stored procedure recompiles, but while these seem like structure and therefore DDL, variables are so temporary that I’m not sure.
Thanks!
Hi Pinal
I would like to know about the commant invoke and how to use this command in sqlserver with one example.
Thanks&Regards,
Shiva
This artical is useful to know about the sql language types.
I know to use the DDL and DML but want to know TCL please do post some easy code.
Dear Sir
Hope, will be better and safe and sound, when i watched and read your website completely,it is too dramatic , mavel and i have no words in skull to praise you.
Please sir i have learnt the DML, and other but do post a simple code of TSQL or TCL
Respectfully yours
Bakht Riaz
Dear Dave,
what is the difference between SQL and DML??
Dear Dave,
Can you pls elucidate the difference between MS-SQL and ORACLE database?
I heard that Oracle has more features for “Customization” and “Security” from my fellow associates
Thanks
Jetty
To answer to post reply 11, the difference between SQL and DML.
First, I guess you got to know that SQL acronym stands for Structured Query Language.
Second, DML means Data Manipulating Language.
There is no difference between those two as DML is a statement category of SQL. In other words, DML is part of SQL.
This is only because SQL is somehow divided into categories, and those categories includes DDL (Data Definition Language), DML (Data Manipulating Language), DCL (Data Control Language) and TCL (Transaction Control Language). All these categories forms SQL (Structured Query Language).
I hope this helps.
Thanks!
I am trying to convert a SQL Server database to DB2 and was wondering if there is any way to easily get the DDL for the database or transfer data. I expect the data extract/transform/load process will require some manual intervention, but getting the DDL seems like it should be built in to SQL Server functionality.
I got the following question in an assignment and was unable to get it all right. It reads “Explain six components of SQL”
I’ll highly appreciate ur response
You forget DELETE statement…
;-)