批量更新,如下所示:
update table_name set price='x1' where sku='x1'; #updated because sku=x1 exist
update table_name set price='x2' where sku='x2'; #ignored because sku=x2 does not exist
update table_name set price='x3' where sku='x3'; #ignored because sku=x2 does not exist
...about 10000 lines...有些行没有更新任何东西,因为它们不存在,我想知道,它们会使mysql变慢还是什么都不影响?
https://stackoverflow.com/questions/44534487
复制相似问题