案发现场
`Column length too big for column 'create_by' (max = 16383); use BLOB or TEXT instead`
`Display width out of range for column 'create_by' (max = 4294967295)`
`Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs`
原因分析
结论:
在 1atin1 编码字符集中,VARCHAR 类型字段最多能存储 65533 个字符;
在 utf8 编码字符集中,VARCHAR 类型字段最多能存储 21844 个字符;
在 utf8mb4 编码字符集中,VARCHAR 类型字段最多能存储 16383 个字符;
解决方案
参考
https://dev.mysql.com/doc/refman/5.7/en/char.html