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

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -