TiDB usage restrictions

1. Identifier length limit

Identifier type Maximum length (characters)
Database 64
Table 64
Cloumn 64
Index 64
View 64
Sequence 64

2. Limit on the total number of Databases, Tables, Views, Connections

Identifier type Maximum number
Databases unlimited
Tables unlimited
Views unlimited
Connections unlimited

Three, the limitations of a single database

Types of Maximum limit
Tables unlimited

Fourth, the limitations of a single Table

Types of Maximum limit
Cloumns 512
Indexs 64
Rows unlimited
Size unlimited
Partitions 1024

Five, single line restrictions

Types of Maximum limit
Size 6MB

Six, single column restrictions

Types of Maximum limit
Size 6MB

Seven, string type restrictions

Types of Maximum limit
CHAR 256 characters
BINARY 256 bytes
VARBINARY 65535 bytes
VARCHAR 16383 characters
TEXT 6MB bytes
BLOB 6MB bytes

8. Limitations of SQL Statements

Types of Maximum limit
Maximum number of statements in a single transaction In the case of optimistic transactions and open transactions be retried, the default limit of 5000, by stmt-count-limitadjusting the

Guess you like

Origin blog.csdn.net/qq_42979842/article/details/108230116