如何在mysql中使varbinary类型最大 [英] How To make varbinary type maximum in mysql

查看:31
本文介绍了如何在mysql中使varbinary类型最大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,在我的应用程序中我的数据库中需要为varbinary设置类型,我使用varbinary(max)有8个字段名,就像使用sql server varbinary(max)一样,但是我已经做了varbinary(60000),这不是问题数据库仍然可以正常运行,但是在我尝试为每个字段名称使用varbinary(60000)之后,显示如下错误:

I have Question, in my application needed setting type for varbinary in my database i have 8 field name using varbinary(max), like as using sql server varbinary(max) but i already did varbinary(60000) that's is not problem database still running fine, but after i tried to using varbinary(60000) for each field name, showing error like below

有人可以帮助我解决此问题吗?我试图将ROW_FORMAT设置为COMPRESSED,DYNAMIC,但仍然无法为每个字段名称设置varbinary(60000).

can someone help me for solving this problem i have tried to setting ROW_FORMAT to COMPRESSED,DYNAMIC but still cannot set varbinary(60000) for each field name.

预先感谢

推荐答案

错误消息指出,MySQL的行大小限制为65535.您可以将列更改为使用 TEXT 数据类型,从而赢得了胜利没有达到行大小限制.

As the error message says, MySQL has row size limit of 65535. You can change the columns to use TEXT datatype so you won't hit the row size limit.

请参见 MySQL文档-表列数限制和行大小以获取更多信息.

See MySQL documentation - Limits on Table Column Count and Row Size for more info.

这篇关于如何在mysql中使varbinary类型最大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆