Data Manipulation Language (DML)

The Data Manipulation Language (DML) is the most commonly used component of Transact-SQL by database developers. Basically, it is used to retrieve, insert, modify, and delete information from databases. These four operations are performed through the commands that compose the DML, respectively:

  • SELECT

  • INSERT

  • UPDATE

  • DELETE

Therefore, any application or client who wants to interact with SQL Server to retrieve, insert, modify, or delete information has to do it through one of these four elements of the Transact-SQL DML.

Listing 2.8 shows a basic example of each one of the four statements that comprise the Data manipulation language (DML).

Code Listing 2.8. Using the DML to Interact with the Database
					 USE Northwind ...

Get Microsoft® SQL Server™ 2000 Programming by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.