Paradigm | Declarative |
---|---|
Family | Query language |
Designed by | Donald D. Chamberlin Raymond F. Boyce |
Developer | ISO/IEC JTC 1 (Joint Technical Committee 1) / SC 32 (Subcommittee 32) / WG 3 (Working Group 3) |
First appeared | 1974 |
Stable release | SQL:2023
/ June 2023 |
Typing discipline | Static, strong |
OS | Cross-platform |
Website | www |
Major implementations | |
Many | |
Dialects | |
Influenced by | |
Datalog | |
Influenced | |
CQL, LINQ, SPARQL, SOQL, PowerShell,[1] JPQL, jOOQ, N1QL, GQL | |
|
Filename extension |
.sql |
---|---|
Internet media type | |
Developed by | ISO/IEC |
Initial release | 1986 |
Type of format | Database |
Standard | ISO/IEC 9075 |
Open format? | Yes |
Website | www |
Structured Query Language (SQL) (pronounced /ˌɛsˌkjuˈɛl/ S-Q-L; or alternatively as /ˈsiːkwəl/ "sequel")[4][5] is a domain-specific language used to manage data, especially in a relational database management system (RDBMS). It is particularly useful in handling structured data, i.e., data incorporating relations among entities and variables.
Introduced in the 1970s, SQL offered two main advantages over older read–write APIs such as ISAM or VSAM. Firstly, it introduced the concept of accessing many records with one single command. Secondly, it eliminates the need to specify how to reach a record, i.e., with or without an index.
Originally based upon relational algebra and tuple relational calculus, SQL consists of many types of statements,[6] which may be informally classed as sublanguages, commonly: Data query Language (DQL), Data Definition Language (DDL), Data Control Language (DCL), and Data Manipulation Language (DML).[7]
The scope of SQL includes data query, data manipulation (insert, update, and delete), data definition (schema creation and modification), and data access control. Although SQL is essentially a declarative language (4GL), it also includes procedural elements.
SQL was one of the first commercial languages to use Edgar F. Codd's relational model. The model was described in his influential 1970 paper, "A Relational Model of Data for Large Shared Data Banks".[8] Despite not entirely adhering to the relational model as described by Codd, SQL became the most widely used database language.[9][10]
SQL became a standard of the American National Standards Institute (ANSI) in 1986 and of the International Organization for Standardization (ISO) in 1987.[11] Since then, the standard has been revised multiple times to include a larger set of features and incorporate common extensions. Despite the existence of standards, virtually no implementations in existence adhere to it fully, and most SQL code requires at least some changes before being ported to different database systems.
ars
was invoked but never defined (see the help page).iana
was invoked but never defined (see the help page).application/sql
was invoked but never defined (see the help page).learningSQL
was invoked but never defined (see the help page).We changed the original name "SEQUEL" to SQL because we got a letter from somebody's lawyer that said the name "SEQUEL" belonged to them. We shortened it to SQL, for Structured Query Language, and the product was known as SQL/DS.
codd-relational-model
was invoked but never defined (see the help page).SQL-Fundamentals
was invoked but never defined (see the help page).IBM-sql
was invoked but never defined (see the help page).ISO 9075:1987
was invoked but never defined (see the help page).