mysql百万数据查询 用什么代替in
create temporary table tmp_c select IMG_ID from img_entry_one where STATU_ID=1 limit 0,10;update img_entry_one set STATU_ID=2,USER_ID='c' where IMG_ID in (select IMG_ID from tmp_c);select IMG_PATH from imgs inner join tmp_c on imgs.IMG_ID=tmp_c.IMG_ID ;DROP TABLE tmp_c;
update img_entry_one A,tmp_c Bset STATU_ID=2,USER_ID='c'where A.IMG_ID=B.IMG_ID