TiDB SQL Text Limit?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: TiDB SQL文本限制?

| username: GreenGuan

May I ask if the TiDB computing component tidb has a limit on the size of SQL text? (Not the transaction size)
I looked for information but it seems there is no explanation for this.

| username: xfworld | Original post link

This one?

| username: GreenGuan | Original post link

No, this is a limitation of the table structure and data types. What I mean is, what is the maximum length of the following text, or is there no limit?

select col1, col2.....colN from t1 inner join t2 where 1=1 and 1=1 and 1=1 and 1=1 and 1=1 and 1=1 and 1=1 and 1=1 and 1=1 and ....
| username: xfworld | Original post link

The way you asked is incorrect. You should ask about the maximum SQL request length that can be accepted :upside_down_face:

Refer to this, but it’s only available after version 6.1.X