DDL, DML, and programmable objects
As a developer, you are often also responsible to create database objects. Of course, in an application, you also need to insert, update, and delete the data. In order to maintain data integrity, enforcing data complies with business rules, you need to implement constraints. In a quick review of the data definition language (DDL) and data modification language (DML) elements, the following statements are presented:
CREATE
for creating tables and programmatic objectsALTER
to add constraints to a tableDROP
to drop an objectINSERT
to insert new dataUPDATE
to change existing dataDELETE
to delete the data
In a SQL Server database, you can also use programmatic objects. You can use triggers for advanced constraints or ...
Get SQL Server 2016 Developer's Guide 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.