Structured Question Language (SQL) is the muse of managing and manipulating relational databases. Whether or not you’re constructing an software, analyzing information, or administering techniques, SQL gives the language to create and work together with information effectively.
This information covers each main SQL command categorized into 5 essential varieties as seen within the offered picture:
- DDL (Information Definition Language)
- DML (Information Manipulation Language)
- DQL (Information Question Language)
- DCL (Information Management Language)
- TCL (Transaction Management Language)
Every class serves a novel function in managing the database surroundings. We’ll cowl the definition, syntax, examples, and enter/output tables to make clear how every command works.
DDL instructions are used to outline, alter, or take away the construction of database objects like tables, schemas, indexes, and extra.
- CREATE
- DROP
- ALTER
- TRUNCATE
- RENAME