MySQL update select组合

update t_news inner join (select readCount from t_news t2 where t2.id=1) t1 set t_news.readCount = t1.readCount+1 where t_news.id=1;

猜你喜欢

转载自www.cnblogs.com/herd/p/9381503.html