I want to use update for any record and all records of my table that column1 <> column2
my command is : 
update table1 set name = (select name from table2
                           where code1 <> code2 and table1.id=table2.id)
Is it possible?
And is it possible to use inner join in update command?
 
     
    