DML is a group of commands in SQL that allows you to modify data in the database, while DDL is a group of commands that allows you to create and drop database tables. Learn about the differences between DML and DDL commands and see examples of both.
- [Instructor] So far in our course we wrote and executed SQL queries which essentially allows us to retrieve data from database tables. For example, select * from employees will return all columns and all rows from the employees tables. However, in addition to SQL queries, two additional categories of statements that are part of the SQL language are DML and DDL commands. Let's understand what DML and DDL command mean.
So DML, which stands for Data Modification Language, is used to modify existing data in your database. For example, you can use DML commands to insert data into our tables such as using an insert command, specifying the table name, column names and the values which we would like to insert into our table. We can also use DML commands to update existing data, as well as delete rows.
We will see all of these examples throughout this chapter. We also have another category of commands known as DDL commands, or Data Definition Language, which are used to create new database objects. So for example, we can create a new table using the DDL create table command, specifying the table name, and the column names, as well as the data types for each column. So to recap, we run SQL queries when we wish to retrieve data from our database tables.
We run DML or Data Modification Language commands when we wish to modify the data in our database such as inserting new records, updating existing values, or deleting rows and we run DDL commands, or Data Definition Language commands, when we want to create new database objects, such as creating new database tables.
Note: This training course is appropriate for beginning database developers with no prior experience with SQL or Oracle.
- Using Oracle SQL*Developer, the free development environment
- Selecting data from tables
- Filtering data
- Using functions to manipulate data
- Joining data from tables
- Creating tables
- Updating values
- Truncating data
- Grouping and ordering result sets
- Working with primary keys
- Checking constraints
Skill Level Beginner
Oracle 12c Database: Administrationwith David Yahalom3h 58m Beginner
Database Foundations: Core Conceptswith Adam Wilbert2h 14m Beginner
Database Foundations: Administrationwith Adam Wilbert1h 14m Beginner
Learning Relational Databases (2014)with Adam Wilbert2h 39m Beginner
1. Introduction to SQL
2. Preparing the Course Environment
Downloading the course VM2m 16s
3. Using Oracle SQL Developer
4. Basic SELECT Queries
5. String, Number, and Date Functions
6. Joining Table Data
7. Manipulating Data
8. Grouping Data
9. Advanced Topics
Next steps1m 33s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.