我需要更新具有不同值的多行。是否可以在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