Update column based on matching values in other table in mysql
问题 I have two tables calendar and customer table. Calendar table have a "customer" column which has customer table "ID" as value. But unfortunately, this calendar customer field value was wrongly populated with other values. Both tables have these common fields Date, SeatingID and BusID. How to update the calendar table customer field based on these common fields?. Below is the structure of both tables. Customer Table calendar Table 回答1: You can UPDATE the Customer field of the second table