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;
where IMG_ID in (select IMG_ID from tmp_c);
怎么写好,用in太慢了。