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
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