I have a circuit like:
- employees (eno, ename, zip, hdate)
- customers (cno, cnmae, street, zip code, phone)
- zipcodes (zip, city)
where zip is pk in zipcodes and fk in other tables.
I have to write an update request that updates the entire origin of zipcode 4994 to 1234 across the entire database.
update zipcodes,customers,employees
set zip = 0
where customers.zip = zipcodes.zip
and employees.zip = zipcodes.zip;
but I know that I am not doing it right. Is there a way to update all zip tables in a single update request?
source
share