Overview
suggest changeStructured Query Language (SQL) is a special-purpose programming language designed for managing data held in a Relational Database Management System (RDBMS). SQL-like languages can also be used in Relational Data Stream Management Systems (RDSMS), or in “not-only SQL” (NoSQL) databases.
SQL comprises three major sub-languages:
- Data Definition Language (DDL), to create and modify the structure of the database.
- Data Manipulation Language (DML), to read, insert, update, and delete data.
- Data Control Language (DCL), to control access to the data.
The core DML operations are Create, Read, Update and Delete (CRUD for short) which are performed by the statements INSERT, SELECT, UPDATE and DELETE.
SQL:2003 also added MERGE, which can insert, update, and delete in one statement. Not every dialect implements it.
Many SQL databases are implemented as client/server systems; the term “SQL server” describes such a database.
At the same time, Microsoft makes a database that is named “SQL Server”. While that database speaks a dialect of SQL, information specific to that product belongs in the SQL Server documentation.