Book Image

SQL Server on Linux

Book Image

SQL Server on Linux

Overview of this book

Microsoft's launch of SQL Server on Linux has made SQL Server a truly versatile platform across different operating systems and data-types, both on-premise and on-cloud. This book is your handy guide to setting up and implementing your SQL Server solution on the open source Linux platform. You will start by understanding how SQL Server can be installed on supported and unsupported Linux distributions. Then you will brush up your SQL Server skills by creating and querying database objects and implementing basic administration tasks to support business continuity, including security and performance optimization. This book will also take you beyond the basics and highlight some advanced topics such as in-memory OLTP and temporal tables. By the end of this book, you will be able to recognize and utilize the full potential of setting up an efficient SQL Server database solution in your Linux environment.
Table of Contents (19 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

DML statements


DML or Data Manipulation Language statements are a set of classic SQL commands used to work on the data (records inside the tables). They are: INSERT, UPDATE, DELETE and SELECT. We can use them directly (ad hoc) or through different sets of applications, as a CRUD layer (CREATE, READ, UPDATE, and DELETE). Here are the explanations of DML commands:

  • INSERT: Adding new records in to tables
  • UPDATE: Modifying existing rows inside the tables
  • DELETE: Removing records from the tables
  • SELECT: Read-only access to the records stored inside the tables

We will learn more about SELECT in Chapter 6, A Crash Course in Querying.

Data manipulation

Now, we will start working with concrete data based on the foundation that we've created in the previous steps. So, we will use our University database to enter initial data into tables and test basic manipulation with the data:

  1. If you are not already in it, change the focus of the current database to University:
1> USE University
        2> GO
    ...