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
最新推荐文章于 2024-02-11 13:23:08 发布
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,'%')