我有以下MySql表:
CREATE TABLE IF NOT EXISTS `realizations` (
`id` varchar(255) NOT NULL,
`place` varchar(255) NOT NULL,
`image` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
我正在尝试使用以下查询更新行:
UPDATE realizations SET id="new-id", place="Some place", image="image.jpg" WHERE id="some-id"
但是我收到以下错误:
> #1118 - Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. You have to change some columns to TEXT or BLOBs
但我的字段都没有超出列限制(255个字符)。
我尝试将查询简化为简单的id
更新
UPDATE realizations SET id="new-id" WHERE id="some-id"
但是我得到了同样的错误。我错过了什么?