NutzCN Logo
问答 数据库自动建表失败,字段太多?
发布于 2008天前 作者 读书人 1828 次浏览 复制 上一个帖子 下一个帖子
标签:
2018-10-17 09:48:32,510 [localhost-startStop-1] DEBUG org.nutz.dao.impl.sql.run.NutDaoExecutor - SQLException
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. You have to change some columns to TEXT or BLOBs

字段大概有150+ 数据库这点字段应该无压力的吧,字段没办法再少了,也想过主附表的方式,但是还有下一步操作。。。。求解该怎么解决

5 回复

所有字段的长度加起来不能超过8192字节

String默认长度varchar(128),通过@ColDefine可以自定义长度

是在每一个字段上都加这个注解么

添加回复
请先登陆
回到顶部