从一个表到另一个表数据更新

UPDATE DB_CORE.tb_user_practice AS prac,test.tb_industry_mapping_temp AS mapping

SET prac.position_industry=mapping.position_industry

WHERE mapping.industry = prac.industry

 

 

更新逗号分割的字符串更新

 

UPDATE tb_job t,tb_position_mapping tm

SET t.position_function = INSERT(t.position_function,POSITION(tm.profession IN t.position_function),LENGTH(tm.profession),tm.position_function)

WHERE FIND_IN_SET(tm.profession,t.position_function) > 0

 

你可能感兴趣的:(数据)