What is the difference between DDL and DML in DB2?
The focus keyword for this question is "Difference between DDL and DML in DB2".
In DB2, Data Definition Language (DDL) is used to define the structure of database objects such as tables, views, indexes, and schemas. DDL commands include CREATE, ALTER, and DROP which modify the structure of the database.
On the other hand, Data Manipulation Language (DML) is used to manipulate the data within the database objects. DML commands include SELECT, INSERT, UPDATE, and DELETE which retrieve, modify, and remove data from the tables.
Understanding the distinction between DDL and DML is crucial for efficient database management in DB2, as DDL deals with the database structure while DML deals with the data itself.
Please login or Register to submit your answer