I have a problem trying to fulfill a column id ‘like’ when comparing the values with another ones in a different schema.
This is the code I’m using:
update oldb.incidencias set impact_id =
(select impact_id
from
newdb.impacts
where
olddb.incidencias.impacto = newdb.impacts.impact_type);
And this is the error I get:
Error Code: 1054. Unknown column ‘olddb.incidencias.impacto’ in ‘where clause’
You can try this:
Or