WHAT IS DML SQL SERVER – SQLSERVERLEARNER https://sqlserverlearner.com LEARN SQL SERVER ONLINE Mon, 27 Jun 2011 09:49:56 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.4 DML – Data manipulation language – SQL SERVER https://sqlserverlearner.com/2011/06/27/dml-data-manipulation-language-sql-server/ https://sqlserverlearner.com/2011/06/27/dml-data-manipulation-language-sql-server/#respond Mon, 27 Jun 2011 09:49:56 +0000 https://sqlserverlearner.azurewebsites.net/2011/06/27/dml-data-manipulation-language-sql-server/ DML

Abbreviation: Data manipulation language

DML is used to insert, update, delete and select records from a table.

DML Statements change the data in the database but does not effect the structure of the objects.

DML Statements  are transaction controlled, they can be committed or rolled back in a transaction.

What can DDL Statements Do?

Following are the DML Statements:

  • Select
  • Insert
  • Update
  • Delete

Example:

SELECT * FROM EMPLOYEE

The above query gives the result set which contains all the records in the table

INSERT INTO EMPLOYEE VALUES (3,’Ram’)

The above query inserts one record into employee table, employee number as 3 and name as Ram.


UPDATE EMPLOYEE SETNAME = ‘PAUL’ WHERE EMPLOYEEID = 2

The above query updates the employee name of the employee with employee id as 3 to PAUL

]]>
https://sqlserverlearner.com/2011/06/27/dml-data-manipulation-language-sql-server/feed/ 0