Maximum length of a table name in MySQL

后端 未结 4 1482
自闭症患者
自闭症患者 2020-12-07 23:59

What is the maximum length of a table name in MySQL?

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-08 00:26

    It's 64 characters. The documentation shows these limits:

    Identifier    Maximum Length (characters)
    Database      64
    Table         64
    Column        64
    Index         64
    Constraint    64
    Stored Procedure or Function    64
    Trigger       64
    View          64
    Alias         256 
    Compound Statement Label    16
    

提交回复
热议问题