select 表B.xkflm=case 表A.xkflm when null then null else 表A.xkflm end from 表A left join 表B on 条件我不知道你想要的是不是这个样子。