模糊更新将a表的数据等于b表数据——sql

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,'%')
发布了125 篇原创文章 · 获赞 41 · 访问量 2746

猜你喜欢

转载自blog.csdn.net/qq_43618030/article/details/103672233