SQL Command Types - Answers - Data Definition (DDL)
- Data Manipulation (DML)
- Data Control (DCL)
- Transaction Control (TCL)
- Procedural Extensions (SQL/PSM)
What is Data Definition (DDL) - Answers A subset of SQL commands used to create, alter, and
drop database structures such as tables, views, indexes, and constraints.
What is Data Manipulation (DML) - Answers A subset of SQL commands used to retrieve and
modify data within database tables, including SELECT, INSERT, UPDATE, and DELETE.
What is Data Control (DCL) - Answers A subset of SQL commands used to grant or revoke user
privileges on database objects.
What is Transaction Control (TCL) - Answers A subset of SQL commands that manage
transactions to ensure atomicity, using COMMIT to save changes and ROLLBACK to undo.
What is SQL/PSM - Answers SQL Persistent Stored Modules; procedural extensions to SQL that
support user-defined functions, triggers, and stored procedures.
SQL DDL Command Types - Answers - CREATE TABLE
- ALTER TABLE
- DROP TABLE
- CREATE VIEW
- DROP VIEW
- CREATE INDEX
SQL DML Command Types - Answers - SELECT
- INSERT
- UPDATE
- DELETE
SQL DCL Command Types - Answers - GRANT