What are the different types of commands in SQL?

There are five types of commands in SQL based on the type of operation they perform:

  1. Data Definition Language - CREATE, ALTER, DROP
  2. Data Modification Language - INSERT, UPDATE, DELETE
  3. Data Control Language - GRANT, REVOKE
  4. Transaction Control Language - COMMIT, ROLLBACK, SAVEPOINT
  5. Data Query Language - SELECT

There are five types of commands in SQL based on the type of operation they perform:

  1. Data Definition Language – CREATE, ALTER, DROP
  2. Data Modification Language – INSERT, UPDATE, DELETE
  3. Data Control Language – GRANT, REVOKE
  4. Transaction Control Language – COMMIT, ROLLBACK, SAVEPOINT
  5. Data Query Language – SELECT
Default image
Sriram Mannava

I'm a full-stack developer and a software enthusiast who likes to play around with cloud and tech stack out of curiosity.

Leave a Reply