July 2015
Intermediate to advanced
972 pages
21h 39m
English
CHAPTER 8
![]()
Inserting, Updating, Deleting
In this chapter, I will cover how to modify data using the Transact-SQL INSERT, UPDATE, DELETE, and MERGE statements. I’ll review the basics of each statement and cover specific techniques such as inserting data returned from a stored procedure and outputting the affected rows of a data modification.
Before going into the new features, let’s start by reviewing basic INSERT concepts.
The simplified syntax for the INSERT command is as follows:
INSERT [ INTO]table_or_view_name [ ( column_list ) ]table_source
Where table_source can be
VALUES (({DEFAULT | NULL | expression } [ ,...n ]) [ ,...n ...Read now
Unlock full access