结构化查询语言 编程范型 声明式 语言家族 查询语言 設計者 唐纳德·钱柏林 雷蒙德·博伊斯 實作者 國際標準化組織 /国际电工委员会 发行时间 1974 当前版本 型態系統 類型系統 , 強型別 操作系统 跨平台 網站 www .iso .org /standard /76583 .html 詳見資料庫系統列表 SQL-86, SQL-89, SQL-92 , SQL:1999 , SQL:2003 , SQL:2006 , SQL:2008 , SQL:2011 Datalog CQL , 语言集成查询 , SOQL , Windows PowerShell ,[ 2] JPQL , 面向Java对象查询
SQL (i [ 5] 或i [ 6] ,Structured Query Language ,结构化查询语言 [ 7] [ 8] [ 9] [ 10] )是一种特定目的程式语言 ,用于管理关系数据库管理系统 (RDBMS),或在关系流数据管理系统 (RDSMS)中进行流处理。
20 世纪 70 年代推出的 SQL 相比早期的读写 API (如 ISAM 或 VSAM )具有两大优势:首先,它引入了用一条命令 访问多条记录的概念;其次,它消除了指定如何访问记录的需求(即无论是否使用索引 )。
SQL最初基于关系代数 和元组关系演算 ,包含多种类型的语句[ 11] ,这些语句可被非正式地归类为以下子语言:数据查询语言(DQL);数据定义语言(DDL);数据控制语言(DCL);数据操作语言(DML)[ 12] 。
SQL 的应用范围涵盖了数据查询、数据操作(插入、更新和删除)、数据定义(模式 创建与修改)以及数据访问控制。尽管 SQL 本质上是一种声明式语言 (第四代语言 ),但它也包含了过程式 元素。
SQL 是最早采用埃德加・F・科德 提出的关系模型 的商用语言之一。该模型在他 1970 年发表的具有重大影响力的论文《大型共享数据库的关系数据模型》中被详细阐述[ 13] 。尽管 SQL 并未完全遵循科德所描述的关系模型 ,但它仍然成为了使用最为广泛的数据库语言[ 14] [ 15] 。
SQL在1986年成为美国国家标准学会 (ANSI)的一项标准 ,在1987年成为国际标准化组织 (ISO)标准[ 16] 。此后,这一标准经过了一系列的增订,加入了大量新特性。虽然有这一标准的存在,但大部分的SQL代码在不同的数据库系统中并不具有完全的跨平台 性。
^ SQL:2023 is out . 2023年6月1日 [2023年6月26日] .
^ Paul, Ryan. A guided tour of the Microsoft Command Shell . Ars Technica. [10 April 2011] . (原始内容存档 于2018-12-25).
^ Media Type registration for application/sql . Internet Assigned Numbers Authority . 10 April 2013 [10 April 2013] . (原始内容存档 于2018-01-24).
^ The application/sql Media Type, RFC 6922 . Internet Engineering Task Force : 3. April 2013 [10 April 2013] . (原始内容存档 于2016-10-18).
^ Beaulieu, Alan. Mary E Treseler , 编. Learning SQL 2nd. Sebastapol, CA, USA: O'Reilly. April 2009. ISBN 978-0-596-52083-0 .
^ SQL, n. . Oxford English Dictionary. Oxford University Press. [2014-11-27 ] .
^ Encyclopedia Britannica. SQL . [2013-04-02 ] . (原始内容存档 于2018-12-25).
^ From Oxford Dictionaries: "Definition of SQL - abbreviation, Structured Query Language, an international standard for database manipulation."
Oxford Dictionaries. SQL . [2017-10-10 ] . (原始内容存档 于2016-08-03).
^ IBM. SQL Guide . [永久失效連結 ]
^ From Microsoft: "Structured Query Language, invented at IBM in the 1970s. It is more commonly known by its acronym, SQL .."
Microsoft. Structured Query Language (SQL) . [2017-10-10 ] . (原始内容存档 于2016-03-12).
^ SQL-92 , 4.22 SQL-statements, 4.22.1 Classes of SQL-statements "There are at least five ways of classifying SQL-statements:", 4.22.2, SQL statements classified by function "The following are the main classes of SQL-statements:"; SQL:2003 4.11 SQL-statements, and later revisions.
^ Chatham, Mark. Structured Query Language By Example - Volume I: Data Query Language . Lulu.com. 2012: 8. ISBN 9781291199512 .
^ Codd, Edgar F. A Relational Model of Data for Large Shared Data Banks . Communications of the ACM (Association for Computing Machinery). June 1970, 13 (6): 377–87 [2007-06-09 ] . doi:10.1145/362384.362685 . (原始内容 存档于2007-06-12).
^ Chapple, Mike. SQL Fundamentals . Databases. About.com. [2009-01-28 ] . (原始内容存档 于2009-02-22).
^ Structured Query Language (SQL) . International Business Machines. October 27, 2006 [2007-06-10 ] .
^ ISO/IEC 9075-1:2008: Information technology – Database languages – SQL – Part 1: Framework (SQL/Framework) . [2017-10-10 ] . (原始内容存档 于2012-02-03).