日期:2014-05-16 浏览次数:21145 次
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 B set STATU_ID=2,USER_ID='c' where A.IMG_ID=B.IMG_ID