P粉2686548732023-08-28 09:36:59
If you need to update the original data, you can do the transaction like this. You can't escape the fact that you need to make 10 different queries.
START TRANSACTION; UPDATE `db_name1`.`table_01` SET `parameter`=`value` WHERE `parameter`=`value`; UPDATE `db_name2`.`table_01` SET `parameter`=`value` WHERE `parameter`=`value`; UPDATE `db_name3`.`table_01` SET `parameter`=`value` WHERE `parameter`=`value`; COMMIT;