34,590
社区成员
发帖
与我相关
我的任务
分享
update B set is_valid='0'where is_valid in(select is_valid from A a inner join B b on a.cable_no=b.cable_no
and b.is_valid=null
update A set is_valid='0' where cable_no not in(select cable_no from B)
update A set is_valid='1' where cable_no not in(select cable_no from B)