update st_student as a ,(select * from st_areas where level=1)as b
set a.province=b.areaname where b.areaname like CONCAT(a.province,'%')
模糊更新将a表的数据等于b表数据——sql
猜你喜欢
转载自blog.csdn.net/qq_43618030/article/details/103672233
今日推荐
周排行