0
0
MySQLquery~5 mins

Why DML operations modify data in MySQL - Quick Recap

Choose your learning style9 modes available
Recall & Review
beginner
What does DML stand for in databases?
DML stands for Data Manipulation Language. It includes commands that change data in the database like INSERT, UPDATE, DELETE.
Click to reveal answer
beginner
Which DML commands modify data in a database?
INSERT adds new data, UPDATE changes existing data, and DELETE removes data from tables.
Click to reveal answer
beginner
Why do DML operations modify data?
Because their purpose is to change the contents of database tables by adding, changing, or removing rows.
Click to reveal answer
intermediate
What happens if you run an UPDATE command without a WHERE clause?
All rows in the table will be updated, which means all data in that column(s) will change.
Click to reveal answer
beginner
How does a DELETE command affect the database?
It removes rows from a table, permanently deleting the data unless a transaction rollback is done.
Click to reveal answer
Which DML command is used to add new data to a table?
ASELECT
BUPDATE
CINSERT
DDELETE
What does the UPDATE command do?
AChanges existing data
BAdds new rows
CDeletes rows
DReads data
Which DML command removes data from a table?
AUPDATE
BDELETE
CINSERT
DCREATE
Why do DML operations modify data?
ATo change the structure of tables
BTo read data only
CTo create new tables
DTo change the data inside tables
What happens if you run DELETE without a WHERE clause?
ADeletes all rows
BDeletes no rows
CDeletes only one row
DReturns an error
Explain why DML operations like INSERT, UPDATE, and DELETE modify data in a database.
Think about what each command does to the table's contents.
You got /4 concepts.
    Describe what could happen if you run an UPDATE or DELETE command without a WHERE clause.
    Consider the scope of the command without filters.
    You got /3 concepts.