Contents
Which of the Following is Not a DDL Command?
What is a DDL Command?
Data Definition Language (DDL) commands are used to define and manipulate data. They are used to create, delete, alter and modify the structure of a database. Some common examples of DDL commands are CREATE TABLE, ALTER TABLE, DROP TABLE and TRUNCATE TABLE.
What are the Different DDL Commands?
The following are some of the most commonly used DDL commands:
- CREATE: Creates a new table or view in the database.
- ALTER: Alters an existing table or view in the database.
- DROP: Deletes a table or view from the database.
- TRUNCATE: Removes all rows from a table.
- COMMENT: Adds comments to a table or column.
- RENAME: Renames a table or view in the database.
Which of the Following is Not a DDL Command?
The following is not a DDL command: SELECT. SELECT is a Data Query Language (DQL) command which is used to retrieve data from a database.
What are the Benefits of Using DDL Commands?
DDL commands are used to define the structure of a database. By using DDL commands, it is easier to manage and modify the structure of a database. It also helps to ensure data integrity and improve performance.
Conclusion
As we can see, DDL commands are used to define and manipulate data. SELECT is not a DDL command, but rather a Data Query Language (DQL) command. DDL commands offer many benefits, including improved data integrity and performance.