DML

SQL Statement Categories

There are four main categories of statements used when writing T-SQL. What are the differences between each of these categories?



Using the INSERT Statement

How to use an INSERT statement to add records to a table in SQL Server. We will begin with just a simple INSERT statement that will add one row into the table.



The OUTPUT Clause

How to use the output clause with Data Manipulation Language (DML) statements like INSERT, UPDATE, and DELETE.


IDENTITY Columns

How to use IDENTITY columnsĀ in a table. An IDENTITY field is very similar to an auto-number field, where the number will automatically be added as each record is inserted.