Skip to content

Commit

Permalink
fix length limitations of longtext and longblob (#9315) (#9326)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot committed Jun 24, 2022
1 parent 1560e12 commit c2da406
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data-type-string.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ MEDIUMTEXT [CHARACTER SET charset_name] [COLLATE collation_name]

### `LONGTEXT` type

The `LONGTEXT` type is similar to the [`TEXT` type](#text-type). The difference is that the maximum column length of `LONGTEXT` is 4,294,967,295.
The `LONGTEXT` type is similar to the [`TEXT` type](#text-type). The difference is that the maximum column length of `LONGTEXT` is 4,294,967,295. But due to the [Limitation on a single column in TiDB](/tidb-limitations.md#limitation-on-a-single-column), the maximum storage size of a single column in TiDB is 6 MB.

```sql
LONGTEXT [CHARACTER SET charset_name] [COLLATE collation_name]
Expand Down Expand Up @@ -109,7 +109,7 @@ MEDIUMBLOB

### `LONGBLOB` type

The `LONGBLOB` type is similar to the [`BLOB` type](#blob-type). The difference is that the maximum column length of `LONGBLOB` is 4,294,967,295.
The `LONGBLOB` type is similar to the [`BLOB` type](#blob-type). The difference is that the maximum column length of `LONGBLOB` is 4,294,967,295. But due to the [Limitation on a single column in TiDB](/tidb-limitations.md#limitation-on-a-single-column), the maximum storage size of a single column in TiDB is 6 MB.

```sql
LONGBLOB
Expand Down

0 comments on commit c2da406

Please sign in to comment.