有两张表bas_student、bas_householder,
去除学生表中与家长表重复的手机号
UPDATE bas_student a,bas_householder b SET a.mobile=NULL WHERE a.mobile=b.HouseHolderMobile AND LENGTH(a.Mobile)=11;
时间: 2024-12-15 19:40:43
有两张表bas_student、bas_householder,
去除学生表中与家长表重复的手机号
UPDATE bas_student a,bas_householder b SET a.mobile=NULL WHERE a.mobile=b.HouseHolderMobile AND LENGTH(a.Mobile)=11;