update t_tbl_desc set num=b.num from t_tbl_desc a, (select distinct(name) as name,count(name) num from t_col_desc group by name)b where a.name=b.name
根据select出来的数据进行update
猜你喜欢
转载自www.cnblogs.com/xinzhyu/p/9206365.html
今日推荐
周排行