P is for Practical | |
PerlMonks |
Perl and MySql - checking tables for column namesby bizactuator (Sexton) |
on Jan 23, 2017 at 08:11 UTC ( [id://1180138]=perlquestion: print w/replies, xml ) | Need Help?? |
bizactuator has asked for the wisdom of the Perl Monks concerning the following question:
I had to take over code from someone that died. They had this in the code:
It appears the $dbh->tables is no longer working. They were running through the tables in that foreach, pulling the tables in:
So since that is no longer working, how can they run through the database like that, looking for the tables with the column they are looking for? It is for people who want to change their username to something else, the programming programmed everything together by the username, because they said they would never allow changes, but they had so many requests, they changed their mind, so now, they have to be changed, so need to look through the tons and tons of tables, in case it is somewhere. The server was upgraded and it quit working, I think it is because that $dbh->tables no longer works. Can someone point to me on how to use the new catalog in that to make it work again?
Back to
Seekers of Perl Wisdom
|
|