This is an old revision of the document!


Programming Language

SQL

SQL (programminglanguage)
Full NameStructured Query Language
Short NameSQL
DescriptionDomain-specific language used in programming and designed for managing data held in a relational database management
CompanyISO/IEC
WebNo
MobileNo
EnterpriseYes
EmbeddedYes
Snippet from Wikipedia: SQL

Structured Query Language (SQL) (pronounced S-Q-L; historically "sequel") 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, 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).

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". Despite not entirely adhering to the relational model as described by Codd, SQL became the most widely used database language.

SQL became a standard of the American National Standards Institute (ANSI) in 1986 and of the International Organization for Standardization (ISO) in 1987. 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.

GitHub Topics

SQL stands for structured query language. It uses commands such as “select”, “insert”, “update”, “delete”. Some common relational database management systems that use SQL are: Oracle, MySQL, Microsoft SQL Server, PostgreSQL, etc.

Declare @Output varchar(16)
Set @Output='Hello, world!'
Select 'Output' = @Output

Source: Wikibooks

See also: Programming Languages

  • dev/sql.1660489068.txt.gz
  • Last modified: 2022/08/14 14:57
  • by Henrik Yllemo