다른 값으로 여러 행을 업데이트해야합니다. MySQL에서 수행 할 수 있습니까? 즉,이단일 mysql 쿼리를 사용하는 다중 updater
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)
하지만이 쿼리 같은 몇 가지 this.Anybody 같은 것을 업데이트 쿼리는 하나를 가질 수
이렇게하면 안됩니다. 이것은'UPDATE' 문장의 목적이 아닙니다. 여러 행에 대해 다른 값을 변경해야하는 경우 여러 명령문을 사용해야합니다. –