我需要更新具有不同值的多行。是否可以在mysql中执行? 即一些这样的事使用单个mysql查询的多个更新
UPDATE landing_page SET (rotation_slot_begin='0',rotation_slot_end='0.333333333333' where landing_pageid=265),(rotation_slot_begin='0.333333333333',rotation_slot_end='0.666666666667' where landing_pageid=267),(rotation_slot_begin='0.666666666667',rotation_slot_end='1' where landing_pageid=268)
但此查询不working.I认为像this.Anybody可以帮我请
你不能这样做。这不是'UPDATE'语句的目的。如果必须为多行更改不同的值,则必须使用多个语句。 – 2010-04-21 11:17:23