UPDATE _black_lists b LEFT JOIN _phone_sections p ON substr(b._mobile, 1, 7) = p._section SET b._province = p._provinceName;