Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 18 additions & 8 deletions tidb-limitations.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,24 @@ You can adjust this limit using the [`max-index-length`](/tidb-configuration-fil

## Limitations on data types

| Type | Upper limit |
|:----------|:----------|
| CHAR | 255 characters |
| BINARY | 255 bytes |
| VARBINARY | 65535 bytes |
| VARCHAR | 16383 characters |
| TEXT | 65535 bytes |
| BLOB | 65535 bytes |
> **Note:**
>
> - The `TEXT` and `BLOB` limits match the corresponding MySQL type limits. To store values larger than 65,535 bytes, use `MEDIUMTEXT`, `LONGTEXT`, `MEDIUMBLOB`, or `LONGBLOB`.
> - Each value must fit within the size limit for its data type, and the entire row must fit within the single-row size limit. You can adjust the single-row size limit using [`txn-entry-size-limit`](/tidb-configuration-file.md#txn-entry-size-limit-new-in-v4010-and-v500).

| Type | Data type limit | Single-row size limit |
|:-----------|:--------------------------------|:----------------------|
| CHAR | 255 characters | 6 MiB by default, adjustable to 120 MiB |
| BINARY | 255 bytes | 6 MiB by default, adjustable to 120 MiB |
| VARBINARY | 65,535 bytes | 6 MiB by default, adjustable to 120 MiB |
| VARCHAR | 16,383 characters (utf8mb4) | 6 MiB by default, adjustable to 120 MiB |
| TEXT | 65,535 bytes | 6 MiB by default, adjustable to 120 MiB |
| BLOB | 65,535 bytes | 6 MiB by default, adjustable to 120 MiB |
| MEDIUMTEXT | 16,777,215 bytes | 6 MiB by default, adjustable to 120 MiB |
| LONGTEXT | 4,294,967,295 bytes | 6 MiB by default, adjustable to 120 MiB |
| MEDIUMBLOB | 16,777,215 bytes | 6 MiB by default, adjustable to 120 MiB |
| LONGBLOB | 4,294,967,295 bytes | 6 MiB by default, adjustable to 120 MiB |
| JSON | Not separately specified | 6 MiB by default, adjustable to 120 MiB |
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

## Limitations on SQL statements

Expand Down