Lesson 9Applying CRUD: Basic Data Management and Manipulation
In lesson 7, “Database Management Using DDL”, you learned how to create a database and set up the tables. The vast majority of work done in a database, however, involves retrieving and manipulating the data itself. While these tasks often require understanding how the database is structured, most of the people who use a database will never be expected to design a database or create a database structure.
DATA MANIPULATION LANGUAGE
In this lesson, four activities involved in working with data will be reviewed. These center on creating, retrieving, updating, and deleting data from a database using SQL. It is common to use the acronym CRUD to refer to these activities.
Before data can be retrieved, it has to be created. In this lesson, the Data Manipulation Language (DML) will specifically be used to show how standard SQL can add data to existing tables, update existing data, and delete data.
CREATE A DATABASE
Before DML operations can be performed on a database, the database needs to exist. ...
Get Job Ready SQL 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.