You are viewing the archived documentation of TiDB, which no longer receives updates. View the latest LTS version docs

TiDB Features

This document lists the features supported in different TiDB versions, including Long-Term Support (LTS) versions and Development Milestone Release (DMR) versions after the latest LTS version.

Data types, functions, and operators

Indexing and constraints

SQL statements

SQL statements 36.66.56.15.45.35.25.15.04.0
Basic SELECT, INSERT, UPDATE, DELETE, REPLACEYYYYYYYYY
INSERT ON DUPLICATE KEY UPDATEYYYYYYYYY
LOAD DATA INFILEYYYYYYYYY
SELECT INTO OUTFILEYYYYYYYYY
INNER JOIN, LEFT|RIGHT [OUTER] JOINYYYYYYYYY
UNION, UNION ALLYYYYYYYYY
EXCEPT and INTERSECT operatorsYYYYYYYYN
GROUP BY, ORDER BYYYYYYYYYY
Window FunctionsYYYYYYYYY
Common Table Expressions (CTE)YYYYYYYNN
START TRANSACTION, COMMIT, ROLLBACKYYYYYYYYY
EXPLAINYYYYYYYYY
EXPLAIN ANALYZEYYYYYYYYY
User-defined variablesEEEEEEEEE
BATCH [ON COLUMN] LIMIT INTEGER DELETEYYYNNNNNN
BATCH [ON COLUMN] LIMIT INTEGER INSERT/UPDATE/REPLACEYYNNNNNNN
ALTER TABLE ... COMPACTYYENNNNNN
Table LockEEEEEEEEE
TiFlash Query Result MaterializationEENNNNNNN

Advanced SQL features

Data definition language (DDL)

Data definition language (DDL)6.66.56.15.45.35.25.15.04.0
Basic CREATE, DROP, ALTER, RENAME, TRUNCATEYYYYYYYYY
Generated columnsEEEEEEEEE
ViewsYYYYYYYYY
SequencesYYYYYYYYY
Auto incrementYYYYYYYYY
Auto randomYYYYYYYYY
TTL (Time to Live)EENNNNNNN
DDL algorithm assertionsYYYYYYYYY
Multi-schema change: add columnsYYEEEEEEE
Change column typeYYYYYYYNN
Temporary tablesYYYYYNNNN
Concurrent DDL statementsYYNNNNNNN
Acceleration of ADD INDEX and CREATE INDEXYYNNNNNNN
Metadata lockYYNNNNNNN
FLASHBACK CLUSTER TO TIMESTAMPYYNNNNNNN

Transactions

Partitioning

Partitioning6.66.56.15.45.35.25.15.04.0
Range partitioningYYYYYYYYY
Hash partitioningYYYYYYYYY
List partitioningYYYEEEEEN
List COLUMNS partitioningYYYEEEEEN
EXCHANGE PARTITIONYYEEEEEEN
Dynamic pruningYYYEEEENN
Range COLUMNS partitioningYYNNNNNNN
Range INTERVAL partitioningEENNNNNNN

Statistics

Statistics6.66.56.16.05.45.35.25.15.04.0
CMSketchDisabled by defaultDisabled by defaultDisabled by defaultDisabled by defaultDisabled by defaultDisabled by defaultYYYY
HistogramsYYYYYYYYYY
Extended statisticsEEEEEEEEEN
Statistics feedbackNNDeprecatedDeprecatedDeprecatedEEEEE
Automatically update statisticsYYYYYYYYYY
Fast AnalyzeEEEEEEEEEE
Dynamic pruningYYYEEEEENN
Collect statistics for PREDICATE COLUMNSEEEEENNNNN
Control the memory quota for collecting statisticsEEENNNNNNN
Randomly sample about 10000 rows of data to quickly build statisticsEEEEEEEEEE
Lock statisticsEENNNNNNNN

Security

Data import and export

Data import and export6.66.56.15.45.35.25.15.04.0
Fast Importer (TiDB Lightning)YYYYYYYYY
mydumper logical dumperDeprecatedDeprecatedDeprecatedDeprecatedDeprecatedDeprecatedDeprecatedDeprecatedDeprecated
Dumpling logical dumperYYYYYYYYY
Transactional LOAD DATAYYYYYYYYN 5
Database migration toolkit (DM)YYYYYYYYY
TiDB BinlogYYYYYYYYY
Change data capture (CDC)YYYYYYYYY
Stream data to Amazon S3, Azure Blob Storage, and NFS through TiCDCEENNNNNNN
TiCDC supports bidirectional replication between two TiDB clustersYYNNNNNNN

Management, observability, and tools


  1. TiDB incorrectly treats latin1 as a subset of utf8. See TiDB #18955 for more details.
  2. Starting from v6.5.0, the expression indexes created on the functions listed by the tidb_allow_function_for_expression_index system variable have been tested and can be used in production environments, and more functions will be supported in the future releases. For functions not listed by this variable, the corresponding expression indexes are not recommended for use in production environments. See expression indexes for details.
  3. See Statement Reference for a full list of SQL statements supported.
  4. For TiDB v4.0, the LOAD DATA transaction does not guarantee atomicity.