sql 用 in 修改语句, 10000修改10次和10000条修改一次哪个效率更高?
一次修改10000条
update table set is_to_dd = '1' where number in ('1','2',',.,','10000');
10000条修改十次
update table set is_to_dd = '1' where number in ('1','2'',.,'1000');
.
update table set is_to_dd = '1' where number in ('9001','9002'',.,'10000');
数据量更大呢?比如修改100000条数据