MySQL 中每种标识符的最大长度是多少?
mysqlmysqli database更新于 2025/5/21 23:08:17
我们知道 MySQL 中的某些对象被称为标识符。这些对象包括数据库、表、索引、列、别名、视图、存储过程、分区、表空间等。标识符使用 Unicode (UTF-8) 存储。下表给出了每种标识符的最大长度:
| Sr. No. | Identifier | Maximum Length (characters) |
|---|---|---|
| 1 | Database | 64 |
| 2 | Table | 64 |
| 3 | Column | 64 |
| 4 | Index | 64 |
| 5 | Constraint | 64 |
| 6 | Stored Procedure or Function | 64 |
| 7 | Trigger | 64 |
| 8 | View | 64 |
| 9 | Event | 64 |
| 10 | Tablespace | 64 |
| 11 | Log File Group | 64 |
| 12 | Alias | 256 |
| 13 | Compound Statement Label | 16 |
相关文章
有用资源
mysql 参考教程 - 该教程包含有关 mysql 的更多信息:https://www.cainiaomax.com/mysql/

