Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

SQL Introduction

SQL Introduction


SQL (Structured Query Language) is used to manage a Relational Database Management System (RDBMS).

SQL performs functions such as data definition, data query, data manipulation, and data control through a series of statements and commands, including data insertion, query, update, and deletion, database schema creation and modification, and data access control.


What is SQL?


What Can SQL Do?


SQL is a standard - but...

Although SQL is an ANSI (American National Standards Institute) standard computer language, there are still several different versions of the SQL language.

However, to be compatible with the ANSI standard, they must all support some major commands in a similar way (such as SELECT, UPDATE, DELETE, INSERT, WHERE, etc.).

lamp **Note:** In addition to the SQL standard, most SQL database programs have their own proprietary extensions!

Using SQL in Your Website

To create a website that displays data from a database, you need:


RDBMS

RDBMS stands for Relational Database Management System.

RDBMS is the foundation of SQL, and also the foundation of all modern database systems, such as MS SQL Server, IBM DB2, Oracle, MySQL, and Microsoft Access.

Data in an RDBMS is stored in database objects called tables.

A table is a collection of related data items and consists of columns and rows.


SQL Development History

The following are key milestones in the development history of SQL:

1970s: Origins and Early Development

  1. 1970: Edgar F. Codd published the paper "A Relational Model of Data for Large Shared Data Banks", proposing the concept of relational databases and laying the theoretical foundation for the development of SQL.
  2. 1973-1974: IBM researchers Donald D. Chamberlin and Raymond F. Boyce, building on Codd's theory, developed a language called SEQUEL (Structured English Query Language) for operating and managing IBM's System R relational database.
  3. 1976: SEQUEL was renamed SQL (Structured Query Language).

1980s: Standardization and Commercialization

  1. 1981: IBM launched the commercial relational database systems SQL/DS (Database System) and DB2 (Database 2).
  2. 1986: The American National Standards Institute (ANSI) released the first SQL standard, ANSI SQL-86 (SQL-87).
  3. 1987: The International Organization for Standardization (ISO) also adopted ANSI SQL-86 as an international standard.

1990s: Expansion and Improvement

  1. 1992: The SQL-92 (SQL2) standard was released, significantly expanding the capabilities of the SQL language, including support for new data types, nested queries, and joins.
  2. 1999: The SQL:1999 (SQL3) standard was released, introducing object-relational database (ORDBMS) features, recursive queries, triggers, and user-defined functions.

2000s: Continuous Evolution and New Features

  1. 2003: The SQL:2003 standard was released, introducing XML-related features and window functions.
  2. 2006: The SQL:2006 standard was released, mainly enhancing support for XML.
  3. 2008: The SQL:2008 standard was released, further improving syntax and performance optimization.

2010s: New Features and Big Data Support

  1. 2011: The SQL:2011 standard was released, adding support for temporal data types and temporal data.
  2. 2016: The SQL:2016 standard was released, introducing the JSON data type and related operation functions to meet the needs of NoSQL databases and big data processing.

2020s: Modernization and Standard Updates

  1. 2023: The latest SQL standards continue to improve, adding support for more modern database requirements and features.

Summary

SQL has evolved from a query language based on the relational model into the core language of modern database management, with its standards continuously evolving and expanding. Major database management systems (such as MySQL, PostgreSQL, SQLite, SQL Server, Oracle, etc.) have added their own extensions and optimizations while following the SQL standard, making SQL a powerful tool for data manipulation and management. The development of SQL not only reflects technological progress but also mirrors the changing and growing needs of data management.