update tbldata set name = t1.name from tbldata t1 where tbldata.name is null and tbldata.id = t1.id;