mysql - Update Column in a table based on column from another table. -
i want update field in column based on column table.
i have tried query gives me error report.
update set a.calculatedcolumn = b.calculatedcolumn table1 inner join table2 b on a.commonfield = b.commonfield a.batchno = '110';
can please inspect wrong there , how fix that? thanks.
the correct way
update table1 join table2 b on a.commonfield = b.commonfield set a.calculatedcolumn = b.calculatedcolumn a.batchno = '110';
Comments
Post a Comment