I have 5 table in a single database and same time of field name. the things i need to is bellow
UPDATE `customers` SET `username`='new' WHERE `username`='old';
UPDATE `radacct` SET `username`='new' WHERE `username`='old';
UPDATE `radcheck` SET `username`='new' WHERE `username`='old';
UPDATE `radreply` SET `username`='new' WHERE `username`='old';
UPDATE `radusergroup` SET `username`='new' WHERE `username`='old';
now how can i update all table in a single query? I have tried with
UPDATE `customers`,`radacct`,`radcheck`,`radreply`,`radusergroup` SET `username`='new' WHERE `username`='old'
but its giving me error
1052 - Column 'username' in field list is ambiguous
looking for solution