简单的更新查询花费了太多时间。优化简单的mysql更新查询
我需要优化此查询。没有加入,它不应该花很多时间。
简单的更新查询低于:
UPDATE need
SET `column7` = "in ABC and in", # type: text
`column9` = "in Abc and in ", # type: text
`column15` = "", #type: text
`column32` = "0" #type: tinyint(1)
WHERE id = "36851"
Field Type Collation
-------------------------- ------------------- ---------------
id bigint(20) unsigned (NULL)
column01 varchar(320) utf8_unicode_ci
column02 varchar(1024) utf8_unicode_ci
column03 longblob (NULL)
.
.
.
.
column32 tinyint(1) (NULL)
column33 tinyint(3) unsigned (NULL)
请提出好的建议。
我没有看到任何明显您的表格定义中存在问题。你的桌子上有多少行?什么是mysql版本? – 2012-03-02 07:59:43