更新根据条件查出的语句 update a set a.name=(select b.name from b where a.id=b.id and b. name is not null) 1、这是一个自连接语句 2、这样的语句在面对名称为空的时候是不可以执行的。