I would like to replace the data column in the table.
Tablea
Uid - int
AnotherUid - int
Tableb
Uid - int
TableA.uid = Table .B uid And I'm trying to replace TableB.Uid with TableA.AnotherUid
Select * from TableB a, TableA b where a.uid=b.uid update TableB set a.uid=b.AnotherUid
I got a SQL syntax error from MySQL in TableB set by a.uid = b.AnotherUid.
Please, kindly help.
source share