0
我只是有一個SQL疑問,其實我需要使用更新查詢多次爲每種顏色值...它變得艱難每次檢查條件爲每種顏色..是否有任何單個的sql語句用於批量更新?
是否有任何單獨的SQL語句低於批量更新?請告訴我..
update `myTable` set `COLOR`='white' WHERE `CATEGORY` = 'Dress' and `NAME` like '%white%'
update `myTable` set `COLOR`='red' WHERE `CATEGORY` = 'Dress' and `NAME` like '%red%'
update `myTable` set `COLOR`='blue' WHERE `CATEGORY` = 'Dress' and `NAME` like '%blue%'
update `myTable` set `COLOR`='pink' WHERE `CATEGORY` = 'Dress' and `NAME` like '%pink%'