Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.35 KB

sql-statement-show-engines.md

File metadata and controls

36 lines (27 loc) · 1.35 KB
title summary aliases
SHOW ENGINES | TiDB SQL Statement Reference
An overview of the usage of SHOW ENGINES for the TiDB database.
/docs/dev/sql-statements/sql-statement-show-engines/
/docs/dev/reference/sql/statements/show-engines/

SHOW ENGINES

This statement is used to list all supported storage engines. The syntax is included only for compatibility with MySQL.

Synopsis

ShowEnginesStmt ::=
    "SHOW" "ENGINES" ShowLikeOrWhere?

ShowLikeOrWhere ::=
    "LIKE" SimpleExpr
|   "WHERE" Expression

Examples

mysql> SHOW ENGINES;
+--------+---------+------------------------------------------------------------+--------------+------+------------+
| Engine | Support | Comment                                                    | Transactions | XA   | Savepoints |
+--------+---------+------------------------------------------------------------+--------------+------+------------+
| InnoDB | DEFAULT | Supports transactions, row-level locking, and foreign keys | YES          | YES  | YES        |
+--------+---------+------------------------------------------------------------+--------------+------+------------+
1 row in set (0.00 sec)

MySQL compatibility

  • This statement will always only return InnoDB as the supported engine. Internally, TiDB will typically use TiKV as the storage engine.