OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Database

SQL - V4.6.0

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogWhite PaperLive DemosTraining & CertificationTicket
    Company
    About OceanBaseTrust CenterLegalPartnerContact Us
    Follow Us

    © OceanBase 2026. All rights reserved

    Cloud Service AgreementPrivacy PolicySecurity
    Contact Us
    Document Feedback
    1. Documentation Center
    2. OceanBase Database
    3. SQL
    4. V4.6.0
    iconOceanBase Database
    SQL - V 4.6.0
    Databases
    • OceanBase Database
    • OceanBase Cloud
    • OceanBase Tugraph
    • Interactive Tutorials
    • OceanBase Best Practices
    Tools
    • OceanBase Cloud Platform
    • OceanBase Migration Service
    • OceanBase Developer Center
    • OceanBase Migration Assessment
    • OceanBase Admin Tool
    • OceanBase Loader and Dumper
    • OceanBase Deployer
    • Kubernetes operator for OceanBase
    • OceanBase Diagnostic Tool
    • OceanBase Binlog Service
    Connectors and Middleware
    • OceanBase Database Proxy
    • Embedded SQL in C for OceanBase
    • OceanBase Call Interface
    • OceanBase Connector/C
    • OceanBase Connector/J
    • OceanBase Connector/ODBC
    • OceanBase Connector/NET
    SQL
    KV
    • V 4.6.0
    • V 4.4.2
    • V 4.3.5
    • V 4.3.3
    • V 4.3.1
    • V 4.3.0
    • V 4.2.5
    • V 4.2.2
    • V 4.2.1
    • V 4.2.0
    • V 4.1.0
    • V 4.0.0
    • V 3.1.4 and earlier

    SQL overview

    Last Updated:2026-05-07 11:26:24  Updated
    Share
    What is on this page
    History of SQL
    SQL standards
    SQL execution
    Portability of SQL
    Conventions

    folded

    Share

    Structured Query Language (SQL) is a specialized programming language. Like other popular relational databases, SQL is used by all programs and users to access data in OceanBase Database. Even though some platforms and tools allow users to access databases directly through interfaces or graphical user interfaces (GUIs), the underlying access is still based on SQL.

    History of SQL

    In June 1970, Dr. E. F. Codd from the San Jose, California laboratory of IBM published a paper titled "A Relational Model of Data for Large Shared Data Banks" in the Association for Computing Machinery (ACM) journal and first introduced the concept of the relational model.

    In 1974, D. D. Chamberlin and R. F. Boyce from the same laboratory developed a standardized language called SEQUEL (Structured English QUEry Language) for the relational database system SystemR developed by IBM. In November 1976, they published the new version of SQL, called SEQUEL/2, in the IBM Journal of R&D. In 1980, the language was renamed SQL.

    In 1979, Oracle released the first commercial SQL implementation, and IBM also implemented SQL in its DB2 and SQL/DS database systems.

    Today, SQL has become the standard language for relational database management systems (RDBMS).

    SQL standards

    In October 1986, the American National Standards Institute (ANSI) adopted SQL as the standard language for RDBMS and named it ANSI X3.135-1986. Later, the International Organization for Standardization (ISO) also adopted SQL as an international standard.

    In 1989, ANSI adopted and used the SQL standard language defined in the ANSI X3.135-1989 report and named it ANSI SQL 89. This standard replaced the previous ANSI X3.135-1986 version.

    Here is a brief history of SQL development:

    • 1986: ANSI X3.135-1986, ISO/IEC 9075:1986, SQL-86.

    • 1989: ANSI X3.135-1989, ISO/IEC 9075:1989, SQL-89.

    • 1992: ANSI X3.135-1992, ISO/IEC 9075:1992, SQL-92 (SQL2).

    • 1999: ISO/IEC 9075:1999, SQL:1999 (SQL3).

    • 2003: ISO/IEC 9075:2003, SQL:2003.

    • 2008: ISO/IEC 9075:2008, SQL:2008.

    • 2011: ISO/IEC 9075:2011, SQL:2011.

    Most of the SQL standards mentioned above are based on the fundamental and core aspects of SQL 92. OceanBase Database currently follows the SQL 92 standard and supports some important features from subsequent SQL standards.

    SQL execution

    SQL is the interface for accessing relational databases such as OceanBase, Oracle, and MySQL. All SQL statements are commands for operating on databases.

    Typically, SQL can be divided into the following five parts:

    • Data Query Language (DQL): Also known as a data retrieval language, DQL is used to retrieve data from tables and describe how to return the data to programs for output. DQL does not modify the data stored in the database.

    • Data Manipulation Language (DML): DML is used to modify the data stored in the database, including adding, modifying, and deleting data.

    • Transaction Control Language (TCL): TCL ensures the integrity and consistency of the database. All Data Manipulation Language (DML) statements within the same transaction either succeed or fail together.

    • Data Control Language (DCL): DCL consists of commands for controlling data access permissions. It allows you to control the access permissions of specific accounts to specific database resources.

    • Data Definition Language (DDL): DDL is used to define, modify, and delete resources in the database, such as creating and dropping tables.

    Portability of SQL

    SQL is the standard language for accessing databases. All major relational databases support SQL, so programs written in SQL are portable. Typically, only minor modifications are needed to port a program from one relational database to another.

    Conventions

    • Bold indicates graphical user interface (GUI) elements associated with operations or terms defined in text or vocabulary.

    • Keywords, identifiers, and parameters are case-insensitive. For readability and identification, these words are written in uppercase.

    • The way SQL statements end varies in different programming environments. In this document, a semicolon (;) is used to indicate the end of an SQL statement.

    • Inline code indicates code referenced in the document.

    • To highlight important information, the document will bold terms such as "Note," "Important," and "Caution."

    • Optional parameters in the document are enclosed in square brackets, for example, [-n, -quiet].

    Previous topic

    Exception handling
    Last

    Next topic

    Overview of management commands
    Next
    What is on this page
    History of SQL
    SQL standards
    SQL execution
    Portability of SQL
    Conventions