V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
MySQL 5.5 Community Server
MySQL 5.6 Community Server
Percona Configuration Wizard
XtraBackup 搭建主从复制
Great Sites on MySQL
Percona
MySQL Performance Blog
Severalnines
推荐管理工具
Sequel Pro
phpMyAdmin
推荐书目
MySQL Cookbook
MySQL 相关项目
MariaDB
Drizzle
参考文档
http://mysql-python.sourceforge.net/MySQLdb.html
skyworker
V2EX  ›  MySQL

InnoDB 格式的表, 使用 utf8mb4 字符集, 字段数量限制是多少

  •  
  •   skyworker · 31 天前 · 304 次点击

    RT, 目前一个历史遗留表, 字段数超过 150 左右的时候, 就无法添加新字段了.

    1 条回复
    asmile1993
        1
    asmile1993  
       28 天前
    单行大小限制:每一行的数据大小最多不能超过 65,535 字节。utf8mb4 字符集在存储时,每个字符可能占用 1 到 4 个字节,因此如果你的表中有多个 utf8mb4 字符集的字段,那么它们会占用较多的存储空间,可能会影响你能够添加的有效字段数。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   973 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 19:24 · PVG 03:24 · LAX 12:24 · JFK 15:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.