Co-Authored By:
SQL commands are grouped into fourmajorcategories depending on their functionality: DataDefinitionLanguage (DDL) - These SQL commands are used forcreating,modifying, and dropping the structure of database objects.Thecommands are CREATE, ALTER, DROP, RENAME,andTRUNCATE.
Regarding this, what are different types of SQL commands?
There are five types of SQL Commands which can beclassifiedas:
- DDL(Data Definition Language).
- DML(Data Manipulation Language).
- DQL(Data Query Language).
- DCL(Data Control Language).
- TCL(Transaction Control Language).
Herein, what are the basic SQL commands?
- Database. A database consists of one or more tables.
- Basic SQL. Each record has a unique identifier orprimarykey.
- SELECT. The SELECT is used to query the database andretrieveselected data that match the specific criteria thatyouspecify:
- CREATE TABLE.
- INSERT VALUES.
- UPDATE.
- DELETE.
- DROP.
These SQL commands are mainly categorized intofourcategories as:
- DDL – Data Definition Language.
- DQl – Data Query Language.
- DML – Data Manipulation Language.
- DCL – Data Control Language.